Sometimes it's necessary to ask for Administrative privileges.
It works!
2. Then edit manifest file. The Execution Level should be changed to
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
3. Change manifest in Project properties.
4. Compile the Project.
Auto It
Add #RequireAdmin in the begining of the Script.It works!
C#
1. Add manifest to project:-------
2. Then edit manifest file. The Execution Level should be changed to
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
3. Change manifest in Project properties.
4. Compile the Project.
Комментариев нет:
Отправить комментарий