How does a program ask for administrator privileges?

前端 未结 4 715
忘了有多久
忘了有多久 2020-12-19 08:36

I am developing an application using vb.net. For performing some tasks the application needs administrator privileges in the machine. How to ask for the privileges during th

4条回答
  •  一整个雨季
    2020-12-19 09:22

    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

    1. level="asInvoker" (same access token as the parent process)
    2. level="requireAdministrator (require full administrator)
    3. level="highestAvailable" (highest privileges available to the current user)

提交回复
热议问题