I know there's been several questions related to running a command prompt as an admin. I looked at this solution How to run command line with admin right in C# But in UWP you can't set UseShellExecute to true. Is there a way to run a command prompt as admin from a UWP?
Asked
Active
Viewed 312 times
0
-
That's not possible. – Hans Passant Sep 25 '20 at 15:38
-
Your app must run with elevated privileges, that's all... – Gusman Sep 25 '20 at 15:39
-
@Gusman, How do I do that? – mrao Sep 25 '20 at 15:40
-
Tablet programs are severely restricted, and admin rights is one of such things. – Alejandro Sep 25 '20 at 15:41
-
You must modify the manifest and target WIndows 10. [This](https://stefanwick.com/2018/10/01/app-elevation-samples-part-1/) explains how to do it. – Gusman Sep 25 '20 at 15:42