F
F
foxlye2020-03-07 23:10:41
WPF
foxlye, 2020-03-07 23:10:41

How to force a program to run as administrator?

How to force a WPF program to run as administrator?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor Bomberow, 2020-03-08
@foxlye

Clickonce
https://docs.microsoft.com/en-us/visualstudio/depl...
Manifest file:
https://docs.microsoft.com/en-us/dotnet/csharp/lan...
Or add to VS resource - manifest file - there

<requestedExecutionLevel level="requireAdministrator" uiAccess="true" />

Powershell:
runas /user:"computer_name\admin_account_name" "C:\path\program.exe"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question