|
|
@ -1536,7 +1536,6 @@ echo Checking WPA Registry Count [%wpainfo%] |
|
|
|
|
|
|
|
|
|
|
|
if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*EvalEdition~*.mum" ( |
|
|
|
if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*EvalEdition~*.mum" ( |
|
|
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || ( |
|
|
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || ( |
|
|
|
set error=1 |
|
|
|
|
|
|
|
call :dk_color %Red% "Checking Eval Packages [Non-Eval Licenses are installed in Eval Windows]" |
|
|
|
call :dk_color %Red% "Checking Eval Packages [Non-Eval Licenses are installed in Eval Windows]" |
|
|
|
set fixes=%fixes% %mas%evaluation_editions |
|
|
|
set fixes=%fixes% %mas%evaluation_editions |
|
|
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%evaluation_editions" |
|
|
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%evaluation_editions" |
|
|
@ -1564,13 +1563,11 @@ call :dk_color %Red% "Checking Edition Name [Not Found In Regi |
|
|
|
) else ( |
|
|
|
) else ( |
|
|
|
|
|
|
|
|
|
|
|
if not exist "%SysPath%\spp\tokens\skus\%osedition%\%osedition%*.xrm-ms" if not exist "%SysPath%\spp\tokens\skus\Security-SPP-Component-SKU-%osedition%\*-%osedition%-*.xrm-ms" ( |
|
|
|
if not exist "%SysPath%\spp\tokens\skus\%osedition%\%osedition%*.xrm-ms" if not exist "%SysPath%\spp\tokens\skus\Security-SPP-Component-SKU-%osedition%\*-%osedition%-*.xrm-ms" ( |
|
|
|
set error=1 |
|
|
|
|
|
|
|
set skunotfound=1 |
|
|
|
set skunotfound=1 |
|
|
|
call :dk_color %Red% "Checking License Files [Not Found] [%osedition%]" |
|
|
|
call :dk_color %Red% "Checking License Files [Not Found] [%osedition%]" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" ( |
|
|
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" ( |
|
|
|
set error=1 |
|
|
|
|
|
|
|
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]" |
|
|
|
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]" |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
@ -1669,7 +1666,6 @@ for /f "skip=2 tokens=2*" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT |
|
|
|
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "SkipRearm" /t REG_DWORD /d "0" /f %nul% |
|
|
|
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "SkipRearm" /t REG_DWORD /d "0" /f %nul% |
|
|
|
call :dk_color %Red% "Checking SkipRearm [Default 0 Value Not Found. Changing To 0]" |
|
|
|
call :dk_color %Red% "Checking SkipRearm [Default 0 Value Not Found. Changing To 0]" |
|
|
|
%psc% "Start-Job { Stop-Service sppsvc -force } | Wait-Job -Timeout 20 | Out-Null" |
|
|
|
%psc% "Start-Job { Stop-Service sppsvc -force } | Wait-Job -Timeout 20 | Out-Null" |
|
|
|
set error=1 |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1715,6 +1711,7 @@ set showfix=1 |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not defined notwinact ( |
|
|
|
call :dk_actid 55c92734-d682-4d71-983e-d6ec3f16059f |
|
|
|
call :dk_actid 55c92734-d682-4d71-983e-d6ec3f16059f |
|
|
|
if not defined apps ( |
|
|
|
if not defined apps ( |
|
|
|
%psc% "Start-Job { Stop-Service sppsvc -force } | Wait-Job -Timeout 20 | Out-Null; $sls = Get-WmiObject SoftwareLicensingService; $f=[io.file]::ReadAllText('!_batp!') -split ':xrm\:.*';iex ($f[1]); ReinstallLicenses" %nul% |
|
|
|
%psc% "Start-Job { Stop-Service sppsvc -force } | Wait-Job -Timeout 20 | Out-Null; $sls = Get-WmiObject SoftwareLicensingService; $f=[io.file]::ReadAllText('!_batp!') -split ':xrm\:.*';iex ($f[1]); ReinstallLicenses" %nul% |
|
|
@ -1729,6 +1726,7 @@ set "_notfoundids=Not found" |
|
|
|
call :dk_color %Red% "Checking Activation IDs [!_notfoundids!]" |
|
|
|
call :dk_color %Red% "Checking Activation IDs [!_notfoundids!]" |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if exist "%tokenstore%\" if not exist "%tokenstore%\tokens.dat" ( |
|
|
|
if exist "%tokenstore%\" if not exist "%tokenstore%\tokens.dat" ( |
|
|
@ -1744,6 +1742,7 @@ reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Soft |
|
|
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed |
|
|
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed |
|
|
|
if "!taskinfo!"=="" set "taskinfo=Not Found" |
|
|
|
if "!taskinfo!"=="" set "taskinfo=Not Found" |
|
|
|
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System might deactivate later]" |
|
|
|
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System might deactivate later]" |
|
|
|
|
|
|
|
if not defined error call :dk_color %Blue% "Reboot your machine using the restart option." |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|