Administrator cmd elevate permissions for administration methods

At the beginning of bat script and write the following command
% 1 start "" mshta vbscript: CreateObject ( "Shell.Application"). ShellExecute ( "cmd.exe", "/ c% ~ s0 ::", "", "runas", 1) (window.close) Exit &&
(write cmd command)
this command line written below the write additional commands that you need to run. After double-click the script, you can pop the User Account Control prompt window, click Run as administrator after a run.

Guess you like

Origin www.cnblogs.com/Delo/p/11085036.html