Mark .NET application to run as Administrator

history edit

Visual Studio, .NET, Windows

Add an app.manifest file to the Project and use the System.Security.Principal namespace to check at runtime whether privileges have been provided.