I am using languard to run a vbscript that will temporarily map a drive and then remove the mapped drive. When I run the script locally, it runs without a hitch. When I push the script to another machine, I get a "800700005 Access denied error". The error occurrs on the line where the MapNetworkDrive method exists. My script is below. I've tried using different credentials, but it doesn't matter. I get the same results. Any help would be appreciated.
Set WSHNetwork = WScript.CreateObject("WScript.Network")
WSHNetwork.MapNetworkDrive "G:", "\\ima4\netlogon\manualupdates"
Const OverwriteExisting = TRUE
Set FSO = CreateObject("Scripting.FileSystemObject")
FSO.CopyFile "g:\scx2kpx.xslt" , "C:\STRATA\VIEW32\Users\NS000000\scx2kpx.xslt", OverwriteExisting