Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform " /v NoGenTicket /t REG_DWORD /d 1 /f > nul 2 >&1 IF /I " %PROCESSOR_ARCHITECTURE% " EQU "AMD64 " (set xOS=圆4) else (set xOS=Win32)įor /f "tokens=6 delims=. Setlocal EnableExtensions EnableDelayedExpansion If %Online% = 0 (call : Get_KMS_IP KMS_IP 0) else (call : Get_KMS_IP KMS_IP 1)
If %Online% = 0 if not exist " %SystemRoot%\system32\SppExtComObjPatcher.* " goto : E_Patcher Enter Your Choice : "Įcho =Įcho Note: Make sure you are connected to Internet For Successful Activation.Ĭhoice /C:GC /N /M " Continue To Activation Go Back : " ^| Check Windows ^& Office Activation Status ^|Įcho. ^| Activate Windows ^& Office With 'Online-KMS' ^|Įcho. ::=įor /f "tokens=2 delims= " %%a IN (' "wmic Path Win32_OperatingSystem Get Caption /format:LIST "') do (set NameOS= %%a) > nul 2 >&1įor /f "tokens=2 delims= " %%a IN (' "wmic Path Win32_OperatingSystem Get CSDVersion /format:LIST "') do (set SP= %%a) > nul 2 >&1įor /f "tokens=2 delims= " %%a in ('wmic path Win32_OperatingSystem get BuildNumber /value') do (set WinBuild= %%a) > nul 2 >&1Įcho. &pause > nul 2 >&1 &exit)Ĭmd /u /c echo Set UAC = CreateObject ^( "Shell.Application " ^) : UAC.ShellExecute " %~0 ", " %params% ", " ", "runas ", 1 > " %temp%\getadmin.vbs " &cscript //nologo " %temp%\getadmin.vbs " &exit If " %1 " = " %params% " (echo Elevating UAC for Administrator Privileges failed &echo Right click on the script and select 'Run as administrator' &echo Press any key to exit.
:: The following test is to avoid infinite looping if elevating UAC for Administrator Privileges failed Set " params =Problem_with_elevating_UAC_for_Administrator_Privileges " &if exist " %temp%\getadmin.vbs " del " %temp%\getadmin.vbs "įsutil dirty query %systemdrive% > nul 2 >&1 & goto : GotPrivileges