Discussion Locked

VBS Logon scripts

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does anyone use VBScripting .vbs for logon scripts effectively in a Windows 2000 domain setting?

3 replies

by al3x

Dim objNet

on error resume next

Set objNet = CreateObject("Wscript.Network")

objNet.MapNetworkDrive "I:", "\\SLTsms\I_folder"

objNet.MapNetworkDrive "J:", "\\SLTsms\J_folder"

objNet.MapNetworkDrive "K:", "\\SLTsms\K_folder"

objNet.MapNetworkDrive "L:", "\\SLTsms\L_folder"

objNet.MapNetworkDrive "N:", "\\SLTsms\N_folder"

objNet.MapNetworkDrive "Q:", "\\SLTsms\Q_folder"

WSCript.Quit

by johnnywatt

Do you run a mixed mode and if you do, do you load up DSClient on the Legacy OS's (Windows 95/98)?
How does the vbs work for you, pretty much error-free?

by al3x

i don't use dsclient, we are planning to upgrade the rest of our win98 (under 30 users) soon enough.

for the xp and win2000 users we do the WSH and for the Win98 users we do the net use command.

yes it has been error free.
i didn't even need a shutdown script because i put in the error erase in the beginning of the script. so when XP changes profiles it has mappings already.

so both of our scripts are running perfect (knock on wood).

the only problem we had was minor.
when upgrading a win98 user to XP machine. we had to remove the script in the profile. then on the user new xp we had to disconnect the drives and log off and log on again.

other than that it has been pretty smooth.

This discussion is closed to new replies.