PsExec 在非交互式运行时卡在许可证提示上 [英] PsExec gets stuck on licence prompt when running non-interactively

查看:38
本文介绍了PsExec 在非交互式运行时卡在许可证提示上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个调用 SysInternals PsExec 实用程序的 Hudson 构建脚本.通常,当给定用户第一次运行 PsExec 时,它会弹出一个对话框,要求用户接受许可证.构建代理作为服务运行,我可以看到构建卡在 PsExec 上.Process Explorer 显示 PsExec 正在运行,所以我强烈怀疑它显示了相同的提示,但由于它以非交互方式运行,因此无法接受该提示.有什么办法可以绕过这个愚蠢的限制吗?在 Windows Server 2008 R2 x64 上运行.

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 user to accept the licence. The build agent runs as a service and I can see that the build gets stuck at PsExec. Process Explorer shows that PsExec is running, so I strongly suspect it's displaying that same prompt, but because it's running non-interactively there is no way to accept the prompt. Is there any way to get around this silly limitation? Running on Windows Server 2008 R2 x64.

推荐答案

使用 /accepteula 命令行开关接受许可协议.

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

或设置

HKCU\Software\Sysinternals\PsExec\EulaAccepted 

到 1

注意:如果上面的 reg 键设置为 0(EULA 被拒绝一次),那么/accepteula 将工作,您必须手动将键设置为 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).

这篇关于PsExec 在非交互式运行时卡在许可证提示上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆