@echo off  
net.exe session 1>NUL 2>NUL && (
    goto gotAdmin
) || (
    goto UACPrompt
)

:UACPrompt  
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" 
    echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" 
    "%temp%\getadmin.vbs" 
    exit /B  

:gotAdmin  
    if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )  

:begin

color 3F
@echo on
type "\\cngua01na001\K_Drive\Desktop Option\Workplace sof\Tiger\md\tiger.md"
md C:\Temp\UltraVNC
cd C:\Temp\UltraVNC
xcopy "\\cngua01na001\K_Drive\Desktop Option\Workplace sof\Tiger\APP\UltraVNC Config\UltraVnc_1224_X64.msi"
msiexec /i UltraVnc_1224_X64.msi /quiet
dir C:\windows\system32
cd C:\Program Files\uvnc bvba\UltraVNC\
del UltraVNC.ini
xcopy "\\cngua01na001\K_Drive\Desktop Option\Workplace sof\Tiger\APP\UltraVNC Config\PC\UltraVNC.ini"
type "\\cngua01na001\K_Drive\Desktop Option\Workplace sof\Tiger\md\Done.md"

@echo off
color 2F
shutdown -l
exit
如果觉得我的文章对你有用,请随意赞赏