totalimpact
-
Total Posts
:
1
- Scores: 0
-
Reward points
:
0
- Joined: 1/4/2012
-
Status: offline
|
VBS to map a drive AND save credentials
Wednesday, January 04, 2012 12:16 PM
( permalink)
not your typical "map my drive" - I have visiting users that I need to give easy access to windows server shares and printers, so I have made a web server on the lan where they can download mapdrive.vbs Problem being - I dont want to store a "startup script" on these computers, but I do want them to have access when rebooting without re-running the script - I was assuming bStoreInProfile would do this, but it seems users no longer have access after a reboot on Windows 7 clients. WshNetwork.MapNetworkDrive "s:", "\\server\MyShare", bStoreInProfile, "someuser", "somepassword" I can easily do a bat script that does this: net use s: \\server\myshare somepassword /USER:mydomain\visitor /persistent:yes thanks -j
|
|
|
|
ebgreen
-
Total Posts
:
8227
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
Re:VBS to map a drive AND save credentials
Thursday, January 05, 2012 3:04 AM
( permalink)
That parameter is intended to keep the mapping persistent. Just out of curiosity, where do you set the value of bStoreInProfile and what do you set it to?
|
|
|
|