|
Question : When using BLOCKED SCRIPT nUser.MapNetworkDrive "I:", "\\Server\Share", how do you make the drive persistant?
|
|
Good Day Experts,
When using VBScript: nUser.MapNetworkDrive "I:", "\\Fax\Scans", how do you make the drive persistant? This is the whole script:
On Error Resume Next
' ' Set constants and variables '
Dim wshShell Dim Domain Dim UserName Dim nUser
Set wshShell = WScript.CreateObject("Wscript.Shell") Set nUser = WScript.CreateObject("Wscript.Network")
Domain = nUser.UserDomain UserName = nUser.UserName
' ' Map Company Folder '
nUser.MapNetworkDrive "I:", "\\Server\Share" nUser.MapNetworkDrive "J:", "\\Server\Share2"
' 'Clean Up ' Set UserName=Nothing Set nUser=Nothing Set Domain=Nothing _____________________________________End Script
|
Answer : When using BLOCKED SCRIPT nUser.MapNetworkDrive "I:", "\\Server\Share", how do you make the drive persistant?
|
|
The profile is the user profile, it basically writes it to the user profile making the mapping persistant.
This is the translation to the syntax in your script:
nUser.MapNetworkDrive "I:", "\\Server\Share", True nUser.MapNetworkDrive "J:", "\\Server\Share2", True
Basically just add the third parameter onto each of the mappings you're doing. Sorry for the confusion.
Chris
|
|
|
|