If you need to run your .NET application as Administrator with Visual Studio is very easy.
- Add new item of type app.manifest to your application
- Open file and change
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
with
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> - Save and build