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:
runas /user:scs\chrismanbup \\188.8.131.52\manual_backup\test.bat
The user then keys the password for the chrismanbup account and we get the below error from the Windows 7 machine:
Attempting to start \\184.108.40.206\manual_backup\test.bat as user "scs\chrismanbup" ...
RUNAS ERROR: Unable to run - \\220.127.116.11\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.