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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Map network drive from local admin account

Status
Not open for further replies.

pdb123

IS-IT--Management
Dec 8, 2004
21
FR
hey,
Can anyone shed a bit of light on this for me??
I am trying to map a network drive from a local admin account in windows XP. I am using the following commands
set WshNetwork = CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "Z:", "\\share\folder"

I am sure there is a need for me to give the script a user name and password In order to allow it connect to the network. but I am not sure how it is done.
Can anyone modify the above line to include this command.

Regards,
 
Thank you PHV that was exactly what I was looking for.
Much appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top