map network drive

  • Thread starter Thread starter misslemike
  • Start date Start date
use logon batch or vbscript. quoted form http://www.ChicagoTech.net
Sample of VBScript - Mapping a network drive based on the group

' Map a network drive if the user is a member of the group.
' Alert the user if the drive cannot be mapped.
If IsMember(objUser, "accounting") Then
If Not MapDrive("Q:", "\\chicagotech\data") Then
MsgBox "Unable to Map Q: to AdminShare"
End If
End If


--
For more and other information, go to http://www.ChicagoTech.net

Don't send e-mail or reply to me except you need consulting services.
Posting on MS newsgroup will benefit all readers and you may get more help.

Robert Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN, Anti-Virus, Tips & Troubleshooting on
http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.
 
If this is just one a single computer that is not part of a domain, you can
create a simple batch file and place it in the following directory:

C:\Documents and Settings\All Users\Start Menu\Programs\Startup

The batch file will be something like:

net use x: \\server\share

Where X: is the letter you want to map
Server - is the name of the server
Share - is the share name
 
Back
Top