Solved

Help Creating Auto Logins On SBS 2003 Standard

Posted on 2004-10-07
5
204 Views
Last Modified: 2010-04-19
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
Comment
Question by:coastalcomputing
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:JamesDS
ID: 12248683
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
 

Author Comment

by:coastalcomputing
ID: 12248787
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
 
LVL 16

Expert Comment

by:JamesDS
ID: 12248828
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
 

Author Comment

by:coastalcomputing
ID: 12248875
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
 
LVL 16

Accepted Solution

by:
JamesDS earned 50 total points
ID: 12250498
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question