@echo off
rem Updates
echo Uninstalling KB3075249 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3021917 (telemetry for Win7)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
echo Uninstalling KB3022345 (telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
echo Uninstalling KB3068708 (telemetry)
start /w wusa.exe /uninstall /kb:3068708 /quiet /norestart
echo Uninstalling KB3044374 (Get Windows 10 for Win8.1)
start /w wusa.exe /uninstall /kb:3044374 /quiet /norestart
echo Uninstalling KB3035583 (Get Windows 10 for Win7sp1/8.1)
start /w wusa.exe /uninstall /kb:3035583 /quiet /norestart
echo Uninstalling KB2990214 (Get Windows 10 for Win7)
start /w wusa.exe /uninstall /kb:2990214 /quiet /norestart
echo Uninstalling KB2952664 (Get Windows 10 assistant)
start /w wusa.exe /uninstall /kb:2952664 /quiet /norestart
echo Uninstalling KB3075853 (update for "Windows Update" on Win8.1/Server 2012R2)
start /w wusa.exe /uninstall /kb:3075853 /quiet /norestart
echo Uninstalling KB3065987 (update for "Windows Update" on Win7/Server 2008R2)
start /w wusa.exe /uninstall /kb:3065987 /quiet /norestart
echo Uninstalling KB3050265 (update for "Windows Update" on Win7)
start /w wusa.exe /uninstall /kb:3050265 /quiet /norestart
echo Uninstalling KB971033 (license validation)
start /w wusa.exe /uninstall /kb:971033 /quiet /norestart
echo Uninstalling KB2902907 (description not available)
start /w wusa.exe /uninstall /kb:2902907 /quiet /norestart
echo Uninstalling KB2976987 (Telemetry update for Windows 7)
start /w wusa.exe /uninstall /kb:2976987 /quiet /norestart
echo Uninstalling KB2976978 (compactibility update for Windows 8.1)
start /w wusa.exe /uninstall /kb:2976978 /quiet /norestart
echo Uninstalling KB3102810 (update for "Windows Update")
start /w wusa.exe /uninstall /kb:3102810 /quiet /norestart
echo Uninstalling KB3112343 (Windows Update Client for Windows 7)
start /w wusa.exe /uninstall /kb:3112343 /quiet /norestart
echo Uninstalling KB3135445 (Windows Update Client for Windows 7)
start /w wusa.exe /uninstall /kb:3135445 /quiet /norestart
echo Uninstalling KB3123862 (Windows Update Client for Windows 7)
start /w wusa.exe /uninstall /kb:3123862 /quiet /norestart
echo Uninstalling KB3081954 (Telemetry Update for Windows 7)
start /w wusa.exe /uninstall /kb:3081954 /quiet /norestart
echo Uninstalling KB3139929 (Get Windows 10 update for MSIE)
start /w wusa.exe /uninstall /kb:3139929 /quiet /norestart
echo Uninstalling KB3138612 (Windows Update Client for Windows 7)
start /w wusa.exe /uninstall /kb:3138612 /quiet /norestart
echo Uninstalling KB3138615 (Windows Update Client for Windows 8.1)
start /w wusa.exe /uninstall /kb:3138615 /quiet /norestart
echo Uninstalling KB3150513 (Compactibility Update (another GWX) for Windows 7/8.1)
start /w wusa.exe /uninstall /kb:3150513 /quiet /norestart
echo Uninstalling KB3173040 (Windows 8.1 and Windows 7 SP1 end of free upgrade offer notification)
start /w wusa.exe /uninstall /kb:3173040 /quiet /norestart
echo Uninstalling KB3163589 ("Your PC is running an outdated version of Windows" notification)
start /w wusa.exe /uninstall /kb:3163589 /quiet /norestart
rem Task Scheduler
echo End and disable Task AitAgent
echo "Aggregates and uploads Application Telemetry information if opted-in
echo to the Microsoft Customer Experience Improvement Program."
schtasks /end /tn "\Microsoft\Windows\Application Experience\AitAgent"
schtasks /change /tn "\Microsoft\Windows\Application Experience\AitAgent" /disable
echo.
echo End and disable Task Microsoft Compatibility Appraiser
echo ?
schtasks /end /tn "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
schtasks /change /tn "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /disable
echo.
echo End and disable Task ProgramDataUpdater
echo "Collects program telemetry information if opted-in to the Microsoft
echo Customer Experience Improvement Program"
schtasks /end /tn "\Microsoft\Windows\Application Experience\ProgramDataUpdater"
schtasks /change /tn "\Microsoft\Windows\Application Experience\ProgramDataUpdater" /disable
echo.
echo End and disable Task Proxy
echo "This task collects and uploads autochk SQM data if opted-in to the
echo Microsoft Customer Experience Improvement Program."
schtasks /end /tn "\Microsoft\Windows\Autochk\Proxy"
schtasks /change /tn "\Microsoft\Windows\Autochk\Proxy" /disable
echo.
echo End and disable Task Consolidator
echo "If the user has consented to participate in the Windows Customer Experience
echo Improvement Program, this job collects and sends usage data to Microsoft."
schtasks /end /tn "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
schtasks /change /tn "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /disable
echo.
echo End and disable Task KernelCeipTask
echo "The Kernel CEIP (Customer Experience Improvement Program) task collects
echo additional information about the system and sends this data to Microsoft. ..."
schtasks /end /tn "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
schtasks /change /tn "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /disable
echo.
echo End and disable Task UsbCeip
echo "The USB CEIP (Customer Experience Improvement Program) task collects Universal
echo Serial Bus related statistics and information about your machine and sends it
echo to the Windows Device Connectivity engineering group at Microsoft. ..."
schtasks /end /tn "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
schtasks /change /tn "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /disable
echo.
echo End and disable Task Microsoft-Windows-DiskDiagnosticDataCollector
echo "The Windows Disk Diagnostic reports general disk and system information to
echo Microsoft for users participating in the Customer Experience Program."
schtasks /end /tn "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector"
schtasks /change /tn "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /disable
echo.
echo End and disable Task QueueReporting
echo "Windows Error Reporting task to process queued reports."
schtasks /end /tn "\Microsoft\Windows\Windows Error Reporting\QueueReporting"
schtasks /change /tn "\Microsoft\Windows\Windows Error Reporting\QueueReporting" /disable
echo.
echo End and disable Task CacheTask
echo "Windows Error Reporting task to process queued reports."
echo Note: Wininet Cache Task is only needed by Internet Explorer
schtasks /end /tn "\Microsoft\Windows\Wininet\CacheTask"
schtasks /change /tn "\Microsoft\Windows\Wininet\CacheTask" /disable
echo.
rem Microsoft Office Telemetrie
echo End and disable Task Office 15 Subscription Heartbeat
echo "Task used to ensure that the Microsoft Office Subscription licensing is
echo current."
schtasks /end /tn "\Microsoft\Office\Office 15 Subscription Heartbeat"
schtasks /change /tn "\Microsoft\Office\Office 15 Subscription Heartbeat" /disable
echo.
echo End and disable Task OfficeTelemetryAgentFallBack
echo "Diese Aufgabe leitet die Hintergrundaufgabe für den Office Telemetrie-Agent
echo ein, der Nutzungs- und Fehlerinformationen für Office-Lösungen durchsucht und
echo hochlädt."
schtasks /end /tn "\Microsoft\Office\OfficeTelemetryAgentFallBack"
schtasks /change /tn "\Microsoft\Office\OfficeTelemetryAgentFallBack" /disable
echo.
echo End and disable Task OfficeTelemetryAgentLogOn
echo "Diese Aufgabe leitet den Office Telemetrie-Agent ein, der Nutzungs- und
echo Fehlerinformationen für Office-Lösungen durchsucht und hochlädt, wenn sich
echo ein Benutzer am Computer anmeldet."
schtasks /end /tn "\Microsoft\Office\OfficeTelemetryAgentLogOn"
schtasks /change /tn "\Microsoft\Office\OfficeTelemetryAgentLogOn" /disable
echo.
if exist %windir%\System32\Tasks\WPD takeown /r /f %windir%\System32\Tasks\WPD
if exist %windir%\System32\Tasks\WPD icacls %windir%\System32\Tasks\WPD /grant *S-1-1-0:(oi)(ci)f /t
if exist %windir%\System32\Tasks\WPD rd /q /s %windir%\System32\Tasks\WPD
if exist %windir%\System32\Tasks\WPD rd /q /s %windir%\System32\Tasks\WPD
if exist %windir%\System32\Tasks\User_Feed_Synchronization*.* takeown /r /f %windir%\System32\Tasks\User_Feed_Synchronization*.*
if exist %windir%\System32\Tasks\User_Feed_Synchronization*.* icacls %windir%\System32\Tasks\User_Feed_Synchronization*.* /grant *S-1-1-0:(oi)(ci)f /t
if exist %windir%\System32\Tasks\User_Feed_Synchronization*.* del /f /q %windir%\System32\Tasks\User_Feed_Synchronization*.* /f /q
rem GWX-Shit
taskkill /f /im gwx.exe
if exist %windir%\System32\GWX takeown /r /f %windir%\System32\GWX
if exist %windir%\System32\GWX icacls %windir%\System32\GWX /grant *S-1-1-0:(oi)(ci)f /t
if exist %windir%\System32\Tasks\Microsoft\Windows\Setup\GWX takeown /r /f %windir%\System32\Tasks\Microsoft\Windows\Setup\GWX
if exist %windir%\System32\Tasks\Microsoft\Windows\Setup\GWX icacls %windir%\System32\Tasks\Microsoft\Windows\Setup\GWX /grant *S-1-1-0:(oi)(ci)f /t
if exist %windir%\System32\Tasks\Microsoft\Windows\Setup\GWXTriggers takeown /r /f %windir%\System32\Tasks\Microsoft\Windows\Setup\GWXTriggers
if exist %windir%\System32\Tasks\Microsoft\Windows\Setup\GWXTriggers icacls %windir%\System32\Tasks\Microsoft\Windows\Setup\GWXTriggers /grant *S-1-1-0:(oi)(ci)f /t
echo End, disable, and delete launchtrayprocess
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\launchtrayprocess schtasks /end /tn "\Microsoft\Windows\Setup\gwx\launchtrayprocess"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\launchtrayprocess schtasks /change /tn "\Microsoft\Windows\Setup\gwx\launchtrayprocess" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\launchtrayprocess schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\launchtrayprocess" /f
echo.
echo End, disable, and delete refreshgwxconfig
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\refreshgwxconfig schtasks /end /tn "\Microsoft\Windows\Setup\gwx\refreshgwxconfig"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\refreshgwxconfig schtasks /change /tn "\Microsoft\Windows\Setup\gwx\refreshgwxconfig" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\refreshgwxconfig schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\refreshgwxconfig" /f
echo.
echo End, disable, and delete refreshgwxconfigandcontent
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\refreshgwxconfigandcontent schtasks /end /tn "\Microsoft\Windows\Setup\gwx\refreshgwxconfigandcontent"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\refreshgwxconfigandcontent schtasks /change /tn "\Microsoft\Windows\Setup\gwx\refreshgwxconfigandcontent" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\refreshgwxconfigandcontent schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\refreshgwxconfigandcontent" /f
echo.
echo End, disable, and delete refreshgwxcontent
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\refreshgwxcontent schtasks /end /tn "\Microsoft\Windows\Setup\gwx\refreshgwxcontent"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\refreshgwxcontent schtasks /change /tn "\Microsoft\Windows\Setup\gwx\refreshgwxcontent" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\gwx\refreshgwxcontent schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\refreshgwxcontent" /f
echo.
echo End, disable, and delete Logon-5d
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\Logon-5d schtasks /end /tn "\Microsoft\Windows\Setup\GWXTriggers\Logon-5d"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\Logon-5d schtasks /change /tn "\Microsoft\Windows\Setup\gwx\Logon-5d" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\Logon-5d schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\Logon-5d" /f
echo.
echo End, disable, and delete MachineUnlock-5d
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\MachineUnlock-5d schtasks /end /tn "\Microsoft\Windows\Setup\GWXTriggers\MachineUnlock-5d"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\MachineUnlock-5d schtasks /change /tn "\Microsoft\Windows\Setup\gwx\MachineUnlock-5d" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\MachineUnlock-5d schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\MachineUnlock-5d" /f
echo.
echo End, disable, and delete OnIdle-5d
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\OnIdle-5d schtasks /end /tn "\Microsoft\Windows\Setup\GWXTriggers\OnIdle-5d"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\OnIdle-5d schtasks /change /tn "\Microsoft\Windows\Setup\gwx\OnIdle-5d" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\OnIdle-5d schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\OnIdle-5d" /f
echo.
echo End, disable, and delete OutOfIdle-5d
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\OutOfIdle-5d schtasks /end /tn "\Microsoft\Windows\Setup\GWXTriggers\OutOfIdle-5d"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\OutOfIdle-5d schtasks /change /tn "\Microsoft\Windows\Setup\gwx\OutOfIdle-5d" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\OutOfIdle-5d schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\OutOfIdle-5d" /f
echo.
echo End, disable, and delete OutOfSleep-5d
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\OutOfSleep-5d schtasks /end /tn "\Microsoft\Windows\Setup\GWXTriggers\OutOfSleep-5d"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\OutOfSleep-5d schtasks /change /tn "\Microsoft\Windows\Setup\gwx\OutOfSleep-5d" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\OutOfSleep-5d schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\OutOfSleep-5d" /f
echo.
echo End, disable, and delete refreshgwxconfig-B
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\refreshgwxconfig-B schtasks /end /tn "\Microsoft\Windows\Setup\GWXTriggers\refreshgwxconfig-B"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\refreshgwxconfig-B schtasks /change /tn "\Microsoft\Windows\Setup\gwx\refreshgwxconfig-B" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\refreshgwxconfig-B schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\refreshgwxconfig-B" /f
echo.
echo End, disable, and delete ScheduleUpgradeReminderTime
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\ScheduleUpgradeReminderTime schtasks /end /tn "\Microsoft\Windows\Setup\GWXTriggers\ScheduleUpgradeReminderTime"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\ScheduleUpgradeReminderTime schtasks /change /tn "\Microsoft\Windows\Setup\gwx\ScheduleUpgradeReminderTime" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\ScheduleUpgradeReminderTime schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\ScheduleUpgradeReminderTime" /f
echo.
echo End, disable, and delete ScheduleUpgradeTime
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\ScheduleUpgradeTime schtasks /end /tn "\Microsoft\Windows\Setup\GWXTriggers\ScheduleUpgradeTime"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\ScheduleUpgradeTime schtasks /change /tn "\Microsoft\Windows\Setup\gwx\ScheduleUpgradeTime" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\ScheduleUpgradeTime schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\ScheduleUpgradeTime" /f
echo.
echo End, disable, and delete Time-5d
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\Time-5d schtasks /end /tn "\Microsoft\Windows\Setup\GWXTriggers\Time-5d"
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\Time-5d schtasks /change /tn "\Microsoft\Windows\Setup\gwx\Time-5d" /disable
if exist %windir%\system32\tasks\Microsoft\Windows\Setup\GWXTriggers\Time-5d schtasks /delete /tn "\Microsoft\Windows\Setup\gwx\Time-5d" /f
echo.
if exist %windir%\System32\GWX rd /q /s %windir%\System32\GWX
if exist %windir%\System32\Tasks\Microsoft\Windows\Setup\GWX rd /q /s %windir%\System32\Tasks\Microsoft\Windows\Setup\GWX
if exist %windir%\System32\Tasks\Microsoft\Windows\Setup\GWXTriggers rd /q /s %windir%\System32\Tasks\Microsoft\Windows\Setup\GWXTriggers
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GWX /v DisableGwx /t REG_DWORD /d 00000001 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v DisableOSUpgrade /t REG_DWORD /d 00000001 /f
pause