How to run exe on remote PC using psexec
问题 There is an exe (D:\TestFile.exe) in remote pc(SYSDES208). When run, it just creates a text file with some text. It works fine when run manually. I'm trying to execute this from another PC this way, in command prompt. D:\PsTools>cmdkey.exe /add:SYSDES208 /user:admin /pass:admin123 //Message - CMDKEY: Credential added successfully D:\PsTools>psexec \\SYSDES208 D:\TestFile.exe //Message - D:\TestFile.exe exited on SYSDES208 with error code 0. There is no error and also no text file created. The