How to allow VB.net scripts to run without runas administrator


In Microsoft visual Studio 2010, You can make a program to run without permission 
  1. Open Project
  2. Enter Project Property
  3. Application List
  4. View Windows Setting Button => it will open app.manifest and look it code below

<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options If you want to change the Windows User Account Control level replace the requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> <requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel node will disable file and registry virtualization. If you want to utilize File and Registry Virtualization for backward compatibility then delete the requestedExecutionLevel node. -->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>

correct code like below:
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel node will disable file and registry virtualization.
If you want to utilize File and Registry Virtualization for backward
compatibility then delete the requestedExecutionLevel node.-->
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>

Share this

Related Posts

Previous
Next Post »