Share via


Map Network Drive based on "Computer Name"

Question

Friday, June 22, 2018 4:06 PM

I need a VBS Script to map and network drive based on the "Computer Name"

I am looking to map to a sub folder based on the "Computer Name" and changed the mapped Name for the "Computer Name'

For example the VBS Equivalent of Net Use X: \\Network Share\XXX\Computer Name"\YYY\ and then change the mapped drive name to "ZZZ"   This so the user will see "ZZZ" X: in explorer....

All replies (1)

Monday, June 25, 2018 6:44 AM

From my search, there is no way to achieve your goal using only the net use command, but there is a way to do this using a vb script

Check this case below for help.

https://superuser.com/questions/461909/override-mapped-drive-name-using-bat-script

In fact, if you want a VB script solution, you need to post in Visual Basic forum directly, there are best resources can help you.

https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral

Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

Regards

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].