Solved

Help Creating Auto Logins On SBS 2003 Standard

Posted on 2004-10-07
5
206 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change home folder path 4 68
Domain Share problems 5 71
Memory Leak in Windows 2012, Non-Paged pool 8.5GB 25 318
MS Endpoint Protection 2 105
Learn about cloud computing and its benefits for small business owners.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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