General discussion

Locked

Login Script for windows 2003 server

By clintondepoel ·
I need help creating a Login Script that will accomidate the following:
Allocates them the following drives:
S: Software
Map all users upon loggining in to their respective home directories under the drive letter H:
Map using the letter I: access to the application directory.

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by anne.jan.elsinga In reply to Login Script for windows ...

There are a couple of possibilities:
* batchfile
* Kixtart
* VBScript
* other 3rd party tool like ScriptLogic

I myself am a Kixtart fanatic. Easy to use and easy to understand login scripts.

with Kixtart you can create scripts like:
USE H: @HOMESHR
USE S: \\SRVR\Software
USE I: \\SRVR\Apps

Check http://www.kixtart.org for more information.

Collapse -

3rd party

by lsp In reply to
Collapse -

by jdgretz In reply to Login Script for windows ...

I'd do this by combining two processes.

First, in the user profile in AD you can set the home directory - that's where I'd set "H".

The other two are simple net use statements.

net use s: /delete
net use s: \\servername\directoryname

net use q: /delete
net use q: "\\servername\share name"

I prefer to delete the drive first, just to be sure - hold over from the old DOS days.

Note - if there is a space in directory/sharename then you have to enclose the string in "".

jdg

Collapse -

"net use" command to map network drives

by cody In reply to

I use this myself for what I do as it's the simpliest method.

You can do it using KIX as well but I've found it doesn't work well for VPN users who needs their drives mapped as it takes a long time.

Using the "net use" command mentioned above works well and very simple.

I too would delete the drive firstl as well in case users map it manually to something else, otherwise it won't map it.

Collapse -

Drive Mapping

by asadfarooqi1 In reply to Login Script for windows ...

save this file as filename.vbs
and then put it in act login script in active directory user area.


Option Explicit
Dim objNetwork, strRemotePath1, strRemotePath2
Dim strDriveLetter1, strDriveLetter2
strDriveLetter1 = "M:"
strDriveLetter2 = "P:"
strRemotePath1 = "\\alan\drivers"
strRemotePath2 = "\\alan\downloads reports"
Set objNetwork = CreateObject("WScript.Network")
' Section which maps two drives, M: and P:
objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
' Extra code just to add a message box
WScript.Echo "Map drives " & strDriveLetter1 & " & " & strDriveLetter2
Wscript.Quit

Back to Desktop Forum
5 total posts (Page 1 of 1)  

Related Forums