As for manipulating GUI in remote desktop or/and by PsExec, I have two questions.
Is there any difference between Windows Remote Desktop and WinRM? I turned on respectively, and processed by
psexec -u [user name] -p [password] \\192.168.xx test.bat. It threw an error, butpsexecitself seemed to work. So, I think both are compatible withpsexec.I would like to ask about the prior question: Use Powershell to start a GUI program on a remote machine According to Victor Michnowicz, PsExec requires RDP process ID, and
tasklistshows a session whose name includes RDP; however I couldn't find anything. Instead of the proposed scriptPsExec.exe -s -i [RDP process ID] calc.exe, I usedpsexec -u [user name] -p [password] \\192.168.xx test.batas I mentioned above. But my script cannot conduct keyboard input and threw an error, so I wonder using psexec specifying RDP process ID possibly works. (Bat file executes python script)