在C#管理员权限启动进程 [英] Start Process with administrator right in C#

查看:296
本文介绍了在C#管理员权限启动进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开始与System.Diagnostics.Process.Start(命令行程序)并运行它以管理员身份。

I have to start a command line program with System.Diagnostics.Process.Start() and run it as Administrator.

这个动作也将计划任务每​​天运行。

This action will also be run by a Scheduled Task every day.

推荐答案

我找到了,我需要设置计划任务运行在常规设置最高权限的应用程序。

I found it, I need to set the Scheduled Task to run the application with highest privileges in General settings.

这篇关于在C#管理员权限启动进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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