I\'m trying to execute notepad.exe on a remote machine, but it\'s not working now. What am I missing?
var ui = new ImpersonateUser();
//the process to re
Just to extend current version of answer.
There could be a problem of execution psexec
due to OS policy, to enable remote control you need to modify registry:
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
You can check this: Remote UAC LocalAccountTokenFilterPolicy