Run Program as Administrator in vb.net

vb.net

Solution

You can do the following to make sure the program has admin permissions:

You can edit the UAC Settings (in VB 2008), which is located in the Project Settings. Look for the line that says

Change `level="asInvoker"` to:

`level="asInvoker"` (normal account - default)

`level="requireAdministrator` (require administrator - What you need... but could be next one)

`level="highestAvailable"` (if anything is higher then administrator, require that)

Hope it helps :)

-nfell2009

Problem

I am programming with vb.net . I have a program which needs Administrator Privileges I want: If program started then a Prompt Show (UAC(User Account Control)) shows that it have to tun as administrator. Is it possible?

Original source