

>if 76 (set OSType=Win8 ) else if 76 (set OSType=Win7 ) else (goto :UnsupportedVersion ) >wmic path OfficeSoftwareProtectionService get Version & (set OsppHook=1 ) || (set OsppHook=0 )

>wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%') get Name 2>nul | findstr /i Windows 1>nul & (set SppHook=1 ) || (set SppHook=0 ) >set "SPPk=SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" >set "IFEO=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options" >cd /d "C:\Users\Shekar\Downloads\KMS_VL_ALL-SppExtComObjPatcher-kms-25\SppExtComObjPatcher-kms2\" >setlocal EnableExtensions EnableDelayedExpansion
