c# require administrator permissions
Create an "Application Manifest File" and change the following line from:
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
to:
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />