Psexec“以(远程)管理员身份运行" [英] Psexec “run as (remote) admin”

查看:355
本文介绍了Psexec“以(远程)管理员身份运行"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我写了一些使用PSexe的C#代码.
我希望它在连接到LAN的计算机上运行远程exe.

该exe会创建一个新的本地用户.
当我在远程计算机上本地运行该exe时(右键单击->以管理员身份运行")-可以正常工作.
我不知道如何模拟右键单击->来自Psexec的以管理员身份运行".
我已经尝试过-l标志,但是它不起作用

有任何想法吗?

Hi,

I wrote some c# code that uses PSexe.
I want it to run a remote exe on a machine connected to my LAN.

That exe creates a new local user.
When I run that exe locally on the remote machine (after right click --> "run as Admin") - it works fine.
I don''t know how to simulate the right click --> "run as Admin" from Psexec.
I have tried the -l flag but it didn''t work

any ideas?

推荐答案

尝试将可执行文件的属性更改为始终以admin身份运行.
Try changing the property of the executable to always run as admin.


这篇关于Psexec“以(远程)管理员身份运行"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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