Question Locked

Mapping Network Drive to a specific username and password

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Hi i would like to know if its possible to create a logon script to map a network drive but only map it with a specified username and password. We are trying to map a network drive that will be hidden but allows access so that sims can be used around the school building. So for example the drive can't be seen or accessed by the user but be accessed so that sims will work

2 replies

by scott_heath

You can use vbscript or dos. I can provide you samples, but I caution against this. Passwords provide security. Storing them in a clear text script is not advised. You can use some programs to compile these files to executable which protects them. If you go this route then I would highly advise compiling the code.

Anyway here is the vbscript sample:

set Net = WScript.CreateObject("WScript.Network")

Net.MapNetworkDrive "", "\\\", False, "\", ""

DOS batch example:

net use \\\ /user:\

Good luck!

This discussion is closed to new replies.