Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo Uninstalling Updates...
- set WUSA_OPTIONS=/quiet /norestart
- :: Note : be careful to keep KB in descending order
- wusa %WUSA_OPTIONS% /uninstall /kb:3080149
- wusa %WUSA_OPTIONS% /uninstall /kb:3075249
- wusa %WUSA_OPTIONS% /uninstall /kb:3068708
- wusa %WUSA_OPTIONS% /uninstall /kb:3068707
- wusa %WUSA_OPTIONS% /uninstall /kb:3050265
- wusa %WUSA_OPTIONS% /uninstall /kb:3044374
- wusa %WUSA_OPTIONS% /uninstall /kb:3035583
- wusa %WUSA_OPTIONS% /uninstall /kb:3022345
- wusa %WUSA_OPTIONS% /uninstall /kb:3021917
- wusa %WUSA_OPTIONS% /uninstall /kb:3015249
- wusa %WUSA_OPTIONS% /uninstall /kb:3012973
- wusa %WUSA_OPTIONS% /uninstall /kb:2990214
- wusa %WUSA_OPTIONS% /uninstall /kb:2977759
- wusa %WUSA_OPTIONS% /uninstall /kb:2952664
- echo Done.
- echo Disabling OS Upgrade Offers
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableOSUpgrade /t REG_DWORD /d 1 /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade" /v ReservationsAllowed /t REG_DWORD /d 0 /f
- echo Done.
- REM --- Disable tasks
- echo Disabling tasks. Depending on Windows version this may have errors, this is normal...
- timeout 3
- schtasks /Change /TN "\Microsoft\Windows\Application Experience\AitAgent" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Application Experience\ProgramDataUpdater" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Autochk\Proxy" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Maintenance\WinSAT" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\ActivateWindowsSearch" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\ConfigureInternetTimeService" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\DispatchRecoveryTasks" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\ehDRMInit" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\InstallPlayReady" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\mcupdate" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\MediaCenterRecoveryTask" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\ObjectStoreRecoveryTask" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\OCURActivate" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\OCURDiscovery" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\PBDADiscovery" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\PBDADiscoveryW1" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\PBDADiscoveryW2" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\PvrRecoveryTask" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\PvrScheduleTask" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\RegisterSearch" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\ReindexSearchRoot" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\SqlLiteRecoveryTask" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\UpdateRecordPath" /DISABLE
- echo Done.
- REM --- Kill services
- echo Killing Diagtrack-service (if it still exists)...
- sc stop Diagtrack
- sc delete Diagtrack
- echo Done.
- echo Stop remoteregistry-service (if it still exists)...
- sc config remoteregistry start= disabled
- sc stop remoteregistry
- echo Done. Manually Reboot for changes to take effect
- @PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement