How to request administrator permission in Visual Basic.NET

Asked

Viewed 608 times

2

I am creating a project that accesses protected Windows folders. How do I request administrative user access.

1 answer

1

If the entire application needs to run with high privileges, you do not need to make changes to the code. Just add a manifesto that informs Windows that your application should be run with high privileges.

For that reason:

  1. Access the project properties;
  2. View Windows Settings;
  3. Add the following line requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

Browser other questions tagged

You are not signed in. Login or sign up in order to post.