Solved

Help Creating Auto Logins On SBS 2003 Standard

Posted on 2004-10-07
5
201 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now