RUNAS error - windows 7 PC running batch script via unc
I have a Windows 7 PC where the user opens a batch file from a mapped drive which then calls a script via a unc path using the runas command to elevate privileges. This works from an XP machine but not from a Windows 7 machine.
For example the first script on the mapped drive is as follows:
The user then keys the password for the chrismanbup account and we get the below error from the Windows 7 machine:
Attempting to start \\22.214.171.124\manual_backup\test.bat as user "scs\chrismanbup" ...
RUNAS ERROR: Unable to run - \\126.96.36.199\manual_backup\test.bat
299: Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
The user is not an administrator but if I use "Run as administrator" it still gives the same error. As mentioned if I run from an XP machine as the same user it runs.