以系统帐户运行exe [英] run exe as system account

查看:51
本文介绍了以系统帐户运行exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将c#exe作为系统帐户运行.我怎样才能做到这一点.我已经尝试过< requestedExecutionlevel level ="requireAdministrator">和< requestedExecutionlevel level ="requireSystem"> 管理员正在工作,而第二个则不在工作.

I am trying to run my c# exe as an system account. How can I do that. I've tried <requestedExecutionlevel level="requireAdministrator"> and <requestedExecutionlevel level="requireSystem"> The administrator is working but the second one is not working.

请帮助我该怎么做.

推荐答案

我找到了解决方案.如果您确实希望将exe作为系统帐户运行,则需要创建Windows服务并将其作为本地系统帐户启动.您将能够看到exe与系统帐户用户一起在任务管理器中运行.这就是我需要知道的.

Hi I've found the solution. If you really want your exe to be run as system account you need to create a windows service and start it as a local system account. you would be able to see an exe is running at task manager along with a system account user. That is what I needed to know.

这篇关于以系统帐户运行exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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