[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

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!!!!


0
coastalcomputing
Asked:
coastalcomputing
  • 3
  • 2
1 Solution
 
JamesDSCommented:
coastalcomputing

Save this code as test.vbs and run it:
 

  Dim WSH
  Set WSH = WScript.CreateObject("WScript.Network")
      WSH.MapNetworkDrive "Z:", "\\SERVERNAME\SHARENAME"
  Set WSH = Nothing

add additional code for each drive you wish to map

Cheers

JamesDS
0
 
coastalcomputingAuthor Commented:
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("WScript.Network")
      WSH.MapNetworkDrive "Z:", "\\SERVER1\HIRUM"
  Set WSH = Nothing

or

Dim WSH
  Set WSH = WScript.CreateObject("WScript.Network")
      WSH.MapNetworkDrive "X:", "\\SERVER1\GLOBAL"
  Set WSH = Nothing

or

Dim WSH
  Set WSH = WScript.CreateObject("WScript.Network")
      WSH.MapNetworkDrive "Y:", "\\SERVER1\ACCOUNTS"
  Set WSH = Nothing

etcetera etc??


Cheers
0
 
JamesDSCommented:
coastalcomputing
that would probably work, but this is more efficient (not tested!)

Dim WSH
  Set WSH = WScript.CreateObject("WScript.Network")

      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
0
 
coastalcomputingAuthor Commented:
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
0
 
JamesDSCommented:
coastalcomputing
Welcome, if you like, although the default place is the NETLOGON share - that way it will be replicated to all Domain Controllers automatically and the clients just look to their local DC when they logon.

NETLOGON is here:
\windows\sysvol\sysvol\YOURDOMAINNAME\scripts

You can call this script using this commandline in the login script window - or using GPOs if your prefer:
\\YOURDOMAINNAME\sysvol\YOURDOMAINNAME\scripts\YOURSCRIPT.VBS

Cheers

JamesDS
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now