I am trying to create a script so that non domain users can map network drives (FYI, I haven't really spent any time with creating scripts so I know close to nothing about them). I found this thread ( ) which seems to have me started in the right direction. I am using the suggested script of:
set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "runas /user:domain\username ""wscript.exe C:\test\test.vbs"""
Which references test.vbs:
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "F:" , "\\server\share"
I am successfully prompted for the password, and I am using the correct login information but it is showing that I am entering incorrect credentials.
Any thoughts on what else I can try? Or is what I am attempting to do not possible?
Thanks in advance,
set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "runas /user:domain\username ""wscript.exe C:\test\test.vbs"""
Which references test.vbs:
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "F:" , "\\server\share"
I am successfully prompted for the password, and I am using the correct login information but it is showing that I am entering incorrect credentials.
Any thoughts on what else I can try? Or is what I am attempting to do not possible?
Thanks in advance,