Run Program as Administrator in vb.net
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