NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
THN
Dec 29, 2008Aspirant
Script to Connect to Network Drive
Good Day all, I've gleaned so much information from these posts, that I thought it's time for me to contribute something, as well. So, here we go: I have created a little vbscript, which can be...
lordoflard
Aug 17, 2009Aspirant
Just to add my two penn'orth...
If you're using a batch file like jamesd and you have a number of shares to map, you can issue the command:
Of course, if you don't want to include the user's password in a plaintext script, omit the "%NASpass%" and a password prompt will appear in the command window.
The Lord of Lard
If you're using a batch file like jamesd and you have a number of shares to map, you can issue the command:
net use \\%NASname% /user:%NASuser% "%NASpass%" /persistent:nothen each share is connected using something of the form:
net use Z: \\%NASname%\ShareNamewhich will save, ooh, a second or so of typing or copy & pasting. I've found this method of connecting as the user before attempting to map drives to be slightly more reliable in an office of mixed Windows versions.
Of course, if you don't want to include the user's password in a plaintext script, omit the "%NASpass%" and a password prompt will appear in the command window.
The Lord of Lard
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!