coastalcomputing
asked on
Help Creating Auto Logins On SBS 2003 Standard
Hi All,
Just a little green around the ears with 2003 Server and auto logins scripts. Below is 3 drives that i want to get mapped automatically when clients login. I want to put this in their account in the login section so if a drive is disconnected then all they have to do is log out.
Could any tell me what the login script is for the following.
X: Global
Y: Food& Beverage (for some users)
Y: Accounts (for some users)
Y: Functions (for some users)
Y: Front Office ((for some users)
Z: Hirum
Could anyone tell me what the exact script required is.
BTW This website is the best idea since sliced bread!!!!
Just a little green around the ears with 2003 Server and auto logins scripts. Below is 3 drives that i want to get mapped automatically when clients login. I want to put this in their account in the login section so if a drive is disconnected then all they have to do is log out.
Could any tell me what the login script is for the following.
X: Global
Y: Food& Beverage (for some users)
Y: Accounts (for some users)
Y: Functions (for some users)
Y: Front Office ((for some users)
Z: Hirum
Could anyone tell me what the exact script required is.
BTW This website is the best idea since sliced bread!!!!
ASKER
So where would i put this Windows Script ?? In the logon option in the user account???
Should it look like this for example
Dim WSH
Set WSH = WScript.CreateObject("WScr ipt.Networ k")
WSH.MapNetworkDrive "Z:", "\\SERVER1\HIRUM"
Set WSH = Nothing
or
Dim WSH
Set WSH = WScript.CreateObject("WScr ipt.Networ k")
WSH.MapNetworkDrive "X:", "\\SERVER1\GLOBAL"
Set WSH = Nothing
or
Dim WSH
Set WSH = WScript.CreateObject("WScr ipt.Networ k")
WSH.MapNetworkDrive "Y:", "\\SERVER1\ACCOUNTS"
Set WSH = Nothing
etcetera etc??
Cheers
Should it look like this for example
Dim WSH
Set WSH = WScript.CreateObject("WScr
WSH.MapNetworkDrive "Z:", "\\SERVER1\HIRUM"
Set WSH = Nothing
or
Dim WSH
Set WSH = WScript.CreateObject("WScr
WSH.MapNetworkDrive "X:", "\\SERVER1\GLOBAL"
Set WSH = Nothing
or
Dim WSH
Set WSH = WScript.CreateObject("WScr
WSH.MapNetworkDrive "Y:", "\\SERVER1\ACCOUNTS"
Set WSH = Nothing
etcetera etc??
Cheers
coastalcomputing
that would probably work, but this is more efficient (not tested!)
Dim WSH
Set WSH = WScript.CreateObject("WScr ipt.Networ k")
WSH.MapNetworkDrive "Z:", "\\SERVER1\HIRUM"
WSH.MapNetworkDrive "X:", "\\SERVER1\GLOBAL"
WSH.MapNetworkDrive "Y:", "\\SERVER1\ACCOUNTS"
Set WSH = Nothing
Then just add additional WSH.Map... commands as you need them
Cheers
JamesDS
that would probably work, but this is more efficient (not tested!)
Dim WSH
Set WSH = WScript.CreateObject("WScr
WSH.MapNetworkDrive "Z:", "\\SERVER1\HIRUM"
WSH.MapNetworkDrive "X:", "\\SERVER1\GLOBAL"
WSH.MapNetworkDrive "Y:", "\\SERVER1\ACCOUNTS"
Set WSH = Nothing
Then just add additional WSH.Map... commands as you need them
Cheers
JamesDS
ASKER
Cool,
Thanks,
I take it that where ever the script is located, i just put that in the logon area of the user account!
Cheers
Thanks,
I take it that where ever the script is located, i just put that in the logon area of the user account!
Cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Save this code as test.vbs and run it:
Dim WSH
Set WSH = WScript.CreateObject("WScr
WSH.MapNetworkDrive "Z:", "\\SERVERNAME\SHARENAME"
Set WSH = Nothing
add additional code for each drive you wish to map
Cheers
JamesDS