vbscript not working
Posted on 2011-02-16
We have a network drive that's causing some issues. I wrote a vbscript to map the drive and applied it to each OU/user as necessary. After the next reboot the workstations show the network drive but when you click on it, it needs the password entered. Here is the script I'm using...
strDriveLetter = "W:"
strRemotePath = "\\xxx.xxx.x.x\xxx"
Set objNetwork = CreateObject("WScript.Network")
strUserName = "xxxxxx"
strPassWord = "xxxxxx"
objNetwork.MapNetworkDrive strDriveLetter, strRemotePath,True, strUserName, strPassWord
Is there something wrong with my script that its not saving the password?
FYI Win Server 2003 R2 domain/Mapped drive on Linux server using samba
Thanks in advance!