Jumat, 12 Juni 2020

How To Make Program Run As Admin .NET Manifest

The program will only run if you are on the administrator's account, using this code, that should already be in app.config, just change:

<requestedExecutionLevel level="asInvoker" uiAccess="false" />

to

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

and it should be good. If you want it to require the highest level of administration/ownership, you can use the following code:

<requestedExecutionLevel level="highestAvailable" uiAccess="false" />

How To Make Program Run As Admin .NET Manifest

Posting Komentar