Question Locked
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 kyleclements Accepted solution
Clarifications
by scott_heath Accepted solution
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.
Trending Hardware posts
Sort by Trending
Question Locked
Setting up a wifi bridge with switch correctly
0 helpful
5 replies
Question Locked
Experiencing Bottleneck with RTX 4060 + i5-12400F - Need Advice
0 helpful
5 replies
Question Locked
Keyboard
0 helpful
3 replies
Question Locked
Core i7 12700KF or Core i7 12700F ?
0 helpful
9 replies
Question Locked
Looking for honest opinions on gaming PC
0 helpful
5 replies