psexec和UAC问题 [英] psexec and UAC problem

查看:101
本文介绍了psexec和UAC问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用psexec在Windows 7的远程计算机上运行exe。我需要exe以管理员权限运行,因为它需要更新远程系统中HKLM下的某些注册表。





运行psexec时我在远程系统上提供管理员帐户的凭据。当远程系统上的UAC关闭时,一切正常。



但是当UAC打开时,远程exe无法启动。



我已将exe配置为使用RequireAdministrator的清单设置。我期望在远程计算机上启动exe时看到UAC提示高程警告。虽然如果有一些方法可以绕过提示,那将会很棒。



但不幸的是,exe无法启动。有什么想法吗?

解决方案

这是需要的psexec.exe的-h开关。该开关在msdn页面中未记录,但您可以在该工具的帮助(/?)中获取它。感谢。

I am using psexec to run a exe in a remote machine which is windows 7. I need the exe to run with administrator privilege as it needs to update some registries under HKLM in the remote system.


While running psexec I am providing the credentials of an administrator account on the remote system. All is working well when UAC on the remote system is turned off.

But when UAC is turned on , the remote exe fails to start.

I have configured the exe to use manifest setting of "RequireAdministrator". What I expect is to see a UAC prompt warning of elevation when the exe is launched on the remote machine. Though it would be great if there is some way to bypass the prompt.

But unfortunately, the exe fails to launch itself. Any ideas?

解决方案

It is the -h switch of psexec.exe which is needed. The switch is undocumented in the msdn page but you can get it in the the help (/?) of the tool. Thanks.


这篇关于psexec和UAC问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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