How can i start my application as "Run as Administrator" forcefully? How can i start my application as "Run as Administrator" forcefully? wpf wpf

How can i start my application as "Run as Administrator" forcefully?


Add an app.manifest to your project.In there, under trustInfo --> security --> requestedPrivileges node, uncomment this line:

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

Then you're good to go.