Execute exe on remote machine

前端 未结 4 694
孤城傲影
孤城傲影 2020-12-07 03:55

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         


        
4条回答
  •  执笔经年
    2020-12-07 04:14

    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

提交回复
热议问题