[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Help Creating Auto Logins On SBS 2003 Standard

Posted on 2004-10-07
5
Medium Priority
?
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

649 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