summaryrefslogtreecommitdiff
path: root/MAS/Separate-Files-Version/Troubleshoot.cmd
diff options
context:
space:
mode:
authorWindowsAddict2024-08-29 21:28:38 +0000
committerWindowsAddict2024-08-29 21:28:38 +0000
commitf9f386a896f1b4233b806d28d7901b942aff6329 (patch)
treee8b44680edf6f4b33fca5886b9d6792ba803de48 /MAS/Separate-Files-Version/Troubleshoot.cmd
parent8e3b4135f56d14b86ccaa96014bc5eb9b6b5f80d (diff)
downloadMicrosoft-Activation-Scripts-f9f386a896f1b4233b806d28d7901b942aff6329.zip
Detect SPP's PerfOptions registry in IFEO, and remove it in troubleshoot script
Diffstat (limited to 'MAS/Separate-Files-Version/Troubleshoot.cmd')
-rw-r--r--MAS/Separate-Files-Version/Troubleshoot.cmd9
1 files changed, 9 insertions, 0 deletions
diff --git a/MAS/Separate-Files-Version/Troubleshoot.cmd b/MAS/Separate-Files-Version/Troubleshoot.cmd
index 84e9f65..ae67278 100644
--- a/MAS/Separate-Files-Version/Troubleshoot.cmd
+++ b/MAS/Separate-Files-Version/Troubleshoot.cmd
@@ -648,6 +648,15 @@ echo:
echo Stopping sppsvc service...
%psc% Stop-Service sppsvc -force %nul%
+set w=
+set _sppint=
+for %%# in (SppEx%w%tComObj.exe sppsvc.exe) do (reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ima%w%ge File Execu%w%tion Options\%%#" %nul% && (set _sppint=1))
+if defined _sppint (
+echo:
+echo Removing SPP IFEO registry keys...
+for %%# in (SppE%w%xtComObj.exe sppsvc.exe) do (reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ima%w%ge File Execu%w%tion Options\%%#" /f %nul%)
+)
+
if %winbuild% LSS 9200 (
REM Fix issues caused by Update KB971033 in Windows 7
REM https://support.microsoft.com/help/4487266