Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Map a network drive on another server? 3

Status
Not open for further replies.

andyds

IS-IT--Management
Feb 22, 2007
91
GB
I have a VBSCRIPT which maps a couple of network drives on a file server when a user logs in. This works fine. However, I want to map a drive on another server which requires a username and password. How do I insert these credentials into a script so that it maps the drive? Or is there another way?
 
the following is what i use:

WSHNetwork.MapNetworkDrive "Z:", "\\ServerName\Share", "True", "domain\username", "password"

RoadKi11
 
well another way, which is a little more secure is just grant those user's rights to that drive instead of having username and password sitting out there in a plain text file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top