Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# start as adminstrator

//You'll want to modify the manifest that gets embedded in the program. This works on Visual Studio 2008 and higher: Project + Add New Item, select "Application Manifest File". Change the <requestedExecutionLevel> element to:

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #start #adminstrator
ADD COMMENT
Topic
Name
3+2 =