1
0
mirror of https://github.com/massgravel/Microsoft-Activation-Scripts.git synced 2024-11-22 14:46:50 +00:00

Add fix for issues caused by update KB971033 in Windows 7

This commit is contained in:
WindowsAddict 2024-08-19 18:40:07 +05:30
parent 1dfd3f6626
commit bf814304c6

@ -646,6 +646,23 @@ echo:
echo Stopping sppsvc service... echo Stopping sppsvc service...
%psc% Stop-Service sppsvc -force %nul% %psc% Stop-Service sppsvc -force %nul%
if %winbuild% LSS 9200 (
REM Fix issues caused by Update KB971033 in Windows 7
REM https://support.microsoft.com/help/4487266
echo:
echo Checking Update KB971033...
%psc% "if (Get-Hotfix -Id KB971033 -ErrorAction SilentlyContinue) {Exit 3}" %nul%
if !errorlevel!==3 (
echo Found, uninstalling it...
wusa /uninstall /quiet /norestart /kb:971033
) else (
echo [Not Found]
)
%psc% Stop-Service sppuinotify -force %nul%
sc config sppuinotify start= disabled
del /f /q %SysPath%\7B296FB0-376B-497e-B012-9C450E1B7327-*.C7483456-A289-439d-8115-601632D005A0 /ah
)
echo: echo:
call :scandat delete call :scandat delete
call :scandat check call :scandat check
@ -675,6 +692,10 @@ call :dk_color %Red% "Failed to rebuilt tokens.dat file."
echo tokens.dat file was rebuilt successfully. echo tokens.dat file was rebuilt successfully.
) )
if %winbuild% LSS 9200 (
sc config sppuinotify start= demand
)
::======================================================================================================================================== ::========================================================================================================================================
:: Rebuild OSPP Tokens :: Rebuild OSPP Tokens
@ -1373,6 +1394,7 @@ if not exist %psc% (echo %~3%~6) else (%psc% write-host -back '%1' -fore '%2' '%
) )
exit /b exit /b
::======================================================================================================================================== ::========================================================================================================================================
:: Set variables :: Set variables