Created
September 22, 2015 01:36
-
-
Save zorchenhimer/ce2d265ce4d7907e8c23 to your computer and use it in GitHub Desktop.
Remove all the nasty stuff that was backported to Windows 7 and 8 from Windows 10.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
AT > NUL | |
if %ERRORLEVEL% EQU 1 ( | |
echo Error: Not running as administrator. | |
echo Please right click the batch file and select 'Run as Administrator' | |
exit /b 1 | |
) | |
echo Uninstalling bad updates... | |
wusa.exe /uninstall /quiet /norestart /kb:971033 | |
wusa.exe /uninstall /quiet /norestart /kb:2952664 | |
wusa.exe /uninstall /quiet /norestart /kb:2976978 | |
wusa.exe /uninstall /quiet /norestart /kb:2977759 | |
wusa.exe /uninstall /quiet /norestart /kb:2990214 | |
wusa.exe /uninstall /quiet /norestart /kb:3021917 | |
wusa.exe /uninstall /quiet /norestart /kb:3022345 | |
wusa.exe /uninstall /quiet /norestart /kb:3035583 | |
wusa.exe /uninstall /quiet /norestart /kb:3044374 | |
wusa.exe /uninstall /quiet /norestart /kb:3068708 | |
wusa.exe /uninstall /quiet /norestart /kb:3075249 | |
wusa.exe /uninstall /quiet /norestart /kb:3080149 | |
echo Removing Diagtrack... | |
sc.exe stop Diagtrack | |
sc.exe delete Diagtrack | |
echo. >%programdata%\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl | |
cacls.exe "%programdata%\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl" /d SYSTEM | |
echo Disabling RemoteRegistry... | |
sc.exe config RemoteRegistry start= disabled | |
sc.exe stop RemoteRegistry | |
echo Deleting scheduled tasks (Select 'Y' if asked)... | |
schtasks.exe /delete /f /tn "\Microsoft\Windows\Application Experience\AitAgent" | |
schtasks.exe /delete /f /tn "\Microsoft\Windows\Application Experience\ProgramDataUpdater" | |
schtasks.exe /delete /f /tn "\Microsoft\Windows\Autochk\Proxy" | |
schtasks.exe /delete /f /tn "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" | |
schtasks.exe /delete /f /tn "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" | |
schtasks.exe /delete /f /tn "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" | |
schtasks.exe /delete /f /tn "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" | |
schtasks.exe /change /disable /tn "\Microsoft\Windows\Maintenance\WinSAT" | |
echo Deleting registry key... | |
reg.exe delete HKLM\SOFTWARE\Microsoft\SQMClient /v MachineID | |
reg.exe delete HKLM\SOFTWARE\Microsoft\SQMClient /v UserID | |
reg.exe add HKLM\SOFTWARE\Microsoft\SQMClient /v MachineID /t REG_SZ /d "" | |
reg.exe add HKLM\SOFTWARE\Microsoft\SQMClient /v UserID /t REG_SZ /d "" | |
echo Done. Restarting the computer... | |
shutdown /r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment