@echo off



rem Aufgabenplanung, Telemetrie abschalten
start /wait "" schtasks /change /disable /tn "\microsoft\windows\application experience\aitagent" >nul 2>nul
start /wait "" schtasks /change /disable /tn "\microsoft\windows\application experience\microsoft compatibility appraiser" >nul 2>nul
start /wait "" schtasks /change /disable /tn "\microsoft\windows\application experience\programdataupdater" >nul 2>nul
start /wait "" schtasks /change /disable /tn "\microsoft\windows\autochk\proxy" >nul 2>nul
start /wait "" schtasks /change /disable /tn "\microsoft\windows\customer experience improvement program\consolidator" >nul 2>nul
start /wait "" schtasks /change /disable /tn "\microsoft\windows\customer experience improvement program\kernelceiptask" >nul 2>nul
start /wait "" schtasks /change /disable /tn "\microsoft\windows\customer experience improvement program\usbceip" >nul 2>nul
start /wait "" schtasks /change /disable /tn "\microsoft\windows\diskdiagnostic\microsoft-windows-diskdiagnosticdatacollector" >nul 2>nul
start /wait "" schtasks /change /disable /tn "\microsoft\windows\maintenance\winsat" >nul 2>nul
start /wait "" schtasks /change /disable /tn "\Microsoft\Windows\Windows Error Reporting\QueueReporting" >nul 2>nul



rem Diagnostics Tracking Service (Diagtrack, Telemetrie) abschalten
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SYSTEM\CurrentControlSet\services\Diagtrack" /v Start /t REG_DWORD /d "4" /f
start /wait "" sc stop Diagtrack
start /wait "" sc config Diagtrack start= disabled



rem Programmbestandssammlung: aus
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableInventory /t REG_DWORD /d "1" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\AppCompat" /v DisableInventory /t REG_DWORD /d "1" /f



rem Problemaufzeichnung (Problem Steps Recorder, PSR UAR): aus
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableUAR /t REG_DWORD /d "1" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\AppCompat" /v DisableUAR /t REG_DWORD /d "1" /f



rem Fehlerberichterstattung: aus
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SYSTEM\CurrentControlSet\services\WerSvc" /v Start /t REG_DWORD /d "4" /f
start /wait "" sc stop WerSvc
start /wait "" sc config WerSvc start= disabled



rem Anwendungs-Telemetrie: aus
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v AITEnable /t REG_DWORD /d "0" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\AppCompat" /v AITEnable /t REG_DWORD /d "0" /f



rem CEIP-Telemetrie: aus
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Messenger\Client" /v CEIP /t REG_DWORD /d "0" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\Messenger\Client" /v CEIP /t REG_DWORD /d "0" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v CEIPEnable /t REG_DWORD /d "0" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\SQMClient\Windows" /v CEIPEnable /t REG_DWORD /d "0" /f



start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d "0" /f



rem Malicious Software Removal Tool (MSRT), Telemetrie: aus
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontReportInfectionInformation /t REG_DWORD /d "1" /f



rem Liste der "Zuletzt benutzte Dateien" abschalten
start /wait "" %SystemRoot%\System32\reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer"
start /wait "" %SystemRoot%\System32\reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoRecentDocsHistory /t REG_DWORD /d "1" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoRecentDocsHistory /t REG_DWORD /d "1" /f



rem automatische Updatesuche: aus, nie
start /wait "" %SystemRoot%\System32\reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d "1" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUState /t REG_DWORD /d "1" /f



rem automatischen Neustart nach Updates verhindern
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d "1" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v RebootRelaunchTimeoutEnabled /t REG_DWORD /d "0" /f



rem Upgrade auf Windows 10 verhindern
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableOSUpgrade /t REG_DWORD /d "1" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade" /v AllowOSUpgrade /t REG_DWORD /d "0" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade" /v ReservationsAllowed /t REG_DWORD /d "0" /f
start /wait "" %SystemRoot%\System32\reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Gwx" /v DisableGwx /t REG_DWORD /d "1" /f



rem SP1-Wrapper KB2533552, ".net Framework 4.6.2", ".net Framework 4.6.2 deutsches Sprachpaket"
rem start /wait "" "%SystemRoot%\Setup\Files\NDP462-KB3151800-x86-x64-AllOS-ENU.exe" /q /norestart | "%SystemRoot%\Setup\Files\NDP462-KB3151800-x86-x64-AllOS-DEU.exe" /q /norestart | "%SystemRoot%\Setup\Files\Windows6.1-KB2532531-x64.msu" /q /norestart | %SystemRoot%\System32\wusa.exe "%SystemRoot%\Setup\Files\Windows6.1-KB2533552-x64.msu" /quiet
rem start /wait "" "%SystemRoot%\Setup\Files\NDP462-KB3151800-x86-x64-AllOS-ENU.exe" /q /norestart | "%SystemRoot%\Setup\Files\NDP462-KB3151800-x86-x64-AllOS-DEU.exe" /q /norestart | %SystemRoot%\System32\wusa.exe "%SystemRoot%\Setup\Files\Windows6.1-KB2533552-x64.msu" /quiet
rem start /wait "" "%SystemRoot%\System32\wusa.exe" "%SystemRoot%\Setup\Files\Windows6.1-KB2533552-x64.msu" /quiet /norestart | "%SystemRoot%\Setup\Files\NDP462-KB3151800-x86-x64-AllOS-ENU.exe" /q /norestart | "%SystemRoot%\Setup\Files\NDP462-KB3151800-x86-x64-AllOS-DEU.exe" /q /norestart
start /wait "" %SystemRoot%\System32\wusa.exe "%SystemRoot%\Setup\Files\Windows6.1-KB2533552-x64.msu" /quiet /norestart
rem Intel Bluetooth 19.0.1629
rem start /wait "" "%SystemRoot%\Setup\Files\Intel_Bluetooth\Setup.exe" /qn



rd /q /s "%SystemRoot%\Setup\Files"
del /q /f "%0"
