Question Locked

Login Script

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need a simple login script for drive mappings, printers and pushing exe file through login script for example DST push.

Anybody knows a site?

5 replies

by cookieorc

Old sample of mine for a batch file setup

Echo Off
REM Drive map for Casselle, Misc, and Quicken Drives shared on the server
REM Created by:Bryce Boone
REM Date: 08/11/05
REM --------------------------------------------------
net use O: \\\
net use M: \\lgsvr01\Misc
net use N: \\lgsvr01\Quicken

by cookieorc

This is a VBS example

' Drivemap.vbs - Map Network Drives for Caselle, Quicken & Misc
' -----------------------------------------------------------------'
Option Explicit
Dim objNetwork, strRemotePath1, strRemotePath2, strRemotePath3
Dim strDriveLetter1, strDriveLetter2, strDriveLetter3

strDriveLetter1 = "O:"
strDriveLetter2 = "M:"
strDriveLetter3 = "N:"
strRemotePath1 = "\\\"
strRemotePath2 = "\\lgsvr01\Misc"
strRemotePath3 = "\\lgsvr01\Quicken"

Set objNetwork = CreateObject("WScript.Network")

' Section which maps two drives, O: , M: and N:
objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
objNetwork.MapNetworkDrive strDriveLetter3, strRemotePath3

Wscript.Quit

' End of Windows Logon Script

by scott_heath

I suggest you use vbscript as you can easily map drives based on group membership and execute all sorts of other things.

This discussion is closed to new replies.