PsExec gets stuck on licence prompt when running non-interactively

后端 未结 2 1376
囚心锁ツ
囚心锁ツ 2020-12-08 19:00

I have a Hudson build script which calls the SysInternals PsExec utility. Normally, when PsExec is run for the first time by a given user it pops up a dialog box asking the

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 19:13

    Use the /accepteula command-line switch to accept the licence agreement.

    Or set

    HKCU\Software\Sysinternals\PsExec\EulaAccepted 
    

    to 1

    Caution: if the reg key above is set to 0 (EULA was declined once) then the /accepteula will not work, you have to set the key to 1 manually (or delete it altogether).

提交回复
热议问题