Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

login scripts - hit or miss

Status
Not open for further replies.

mlchris2

Technical User
Mar 18, 2005
512
US
I have 30 users in AD that use their own login script.

Sometimes I can take user "A" and login to their workstation and the loginscript runs fine. Otherdays, the login script fails to run and I have to run it manually.

This happens to what I belive is RANDOM users.

I verified permissions on the NETLOGON folder and the "Domain Users" group has proper permissions to that directory...

Any idea what might be causing this.

Mark C.
Network Admin - Digital Draw Network
 
here is what is in the usera.bat:

NET USE N: \\DDN1\CORPDATA /PERSISTENT:NO /YES
NET USE O: \\DDN1\OPERATIONS /PERSISTENT:NO /YES
NET USE R: \\DDN1\EMAIL /PERSISTENT:NO /YES
NET TIME \\DDN1 /SET /YES

I'll try to elaborate a bit more....

I am noticing if ANY user logs into their workstation in the morning for the first time, the login scrip MAY or MAY NOT run. Somedays the script will run at first login, other days it wont. If the script doesnt run, the user logs out and logs back in and the script will run. I get no errors when running the script manually. I cant pinpoint when this happens or under what circumstances...

Mark C.
Network Admin - Digital Draw Network
 
Right, why don't you try wsh on a vbs file like logon.vbs and

Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "H:" , "\\DDN1\CORPDATA"
objNetwork.MapNetworkDrive "O:" , "\\DDN1\OPERATIONS"
objNetwork.MapNetworkDrive "R:" , "\\DDN1\EMAIL"

This works 100%.Then you can do the Time like:
Windows XP and Windows 2000 automatically synchronize the time.

Bordetas: MCSA/MCSE Security (only on paper) ;-P
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top