%comspec% /K runas /user:scans "ScanFiles.exe"
When I run this within the current user (ATU4)
it runs fine. When I run it from a different
computer with a Remote Procedure Call I get an error SAYING:
Enter the password for scans: (I input the correct password)
Attempting to start ScanFiles.exe as user "ATUUSER4\scans" ...
RUNAS ERROR: Unable to run - ScanFiles.exe
87: The parameter is incorrect.
When I look at Security for Scanfiles.exe it shows for ATUUSER4\Scans that it has Read
and Execute rights.
I have tried changing the user to administrator with the administrator password and it
produced the same error.
Then I signed on as administrator and ran with /user:administrator it produced the same error.
Process Explorer shows CMD.exe running with the user NT Authority\System.
I expected it to be running with the user ATUUSER4\Administrator.
I don't see what would stop runas from doing what it is intended to do.
I'm running this in XP Pro sp2 NTFS "Use Simple File Sharing" is not checked.