


There maybe more but you get the idea how to set them. IF EXIST "%KPLoc% KMSpico_setup.exe" "%KPLoc% KMSpico_setup.exe" /verysilent /noicons IF EXIST "%Windir%\Sysnative\slmgr.vbs" (cscript //nologo "%WinDir%\Sysnative\slmgr.vbs" /upk >nul) ELSE (cscript //nologo "%WinDir%\System32\slmgr.vbs" /upk >nul) :: WMIC /NAMESPACE:\\root\CIMV2 PATH SoftwareLicensingProduct WHERE LicenseStatus=1 GET LicenseStatus | findstr "1" >nul :: Remove the :: from the two lines below if you wish to have the script check if already activated and to bypass KMS. download it from here įor preactivating copy the $OEM$ folder found in kms vl all and replace this in windows iso $OEM$ folder. I found that kms vl all is better than kmspico. REG ADD "HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /v "%WinDir%\SECOH-QAD.exe" /t REG_DWORD /d 0 /f >nul 2>&1ĭEL /F /Q "%0%" >nulSave as SetupComplete.cmd and place in the \Sources\$OEM$\$$\Setup\Scripts folder of your ISO/USB. REG ADD "HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /v "%ProgramFiles%\KMSpico\Autopico.exe" /t REG_DWORD /d 0 /f >nul 2>&1 REG ADD "HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /v "%ProgramFiles%\KMSpico\Service_KMS.exe" /t REG_DWORD /d 0 /f >nul 2>&1 REG ADD "HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /v "%ProgramFiles%\KMSpico\KMSELDI.exe" /t REG_DWORD /d 0 /f >nul 2>&1
