Error on getting username in a logon script. 
Author Message
 Error on getting username in a logon script.

Hi, all.

I tried to make an shortcut, which is a user's network folder.
So my logon script looks like this,

On Error Resume Next

Do While NetUser=""
 NetUser = WshNetwork.Username

Set oUrlLink2 = WshShell.CreateShortcut(strDesktop & "\" & NetUser & "'s
oUrlLink2.TargetPath = "\\server\shared\" & NetUser

But when I loged on a win95 machine, I got an error message saying that the
user hasn't loged on yet, something like this.
(I can't translate the Korean error message into English on exactly.)

My guess about this error is the script seems to be excuted a little bit
earlier than it gets the necessary information, like UserName
, etc...

Is there any way to solve this problem.

Well, I hope this posting will be the last one for what I am doing now.

Thanks in advance.....

Mon, 28 Jan 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. UserName in Logon Scripts in Win9x

2. Having trouble with that WSHNetwork.UserName logon script bug

3. WSHNetwork.USerName not working during logon script

4. How do I get wshNetwork.UserName within a Windows 95 logon script

5. UserName property in Win95 logon scripts.

6. Windows ME UserName in logon script

7. newbie question about username in logon script

8. getting the UserName from a login script

9. Getting .vbs script to run at logon..

10. logon.exe script.vbs in profile (logon script)

11. How to determine the Network logon username..

12. Always show the same username in the logon window


Powered by phpBB® Forum Software