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!

I need help mapping my users shared hidden home drives

Status
Not open for further replies.
Apr 21, 2005
16
US
I'm using a script that Mark MacLachlan wrote and it seems to be working good but my users all have shared hidden home drives and I'm pretty green at doing VBS scripts so can someone tell me what I need to put in the command line to map it correctly? This is the path for a users home drive: \\servername\rsmith$ . Here's the line that I'm using to map the drive: WSHNetwork.MapNetworkDrive "H:", "\\servername\" & UserString,True .
Thanks for any help.
 
And what is UserString ?
Just a guess:
WSHNetwork.MapNetworkDrive "H:", "\\servername\" & UserString & "$",True

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks for the info I'll give it a try and see what happens. Here's the UserString: UserString = WSHNetwork.UserName .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top