Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ::This Script disables a lot of the Windows 10 telemetry. Have fun. (Improvements/Enhancements are welcome)
- :: -> Run this .cmd file as administrator!
- ::Dieses Script deaktiviert einen Großteil der Windows 10 Telemetriefunktionen. (Verbesserungen/Erweiterungen sind gern gesehen)
- :: Version 0.4 - Windows 10 only!
- :: 14.08.2015
- @echo off
- color 0e
- echo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- echo %% Windows 10 Antispy %%
- echo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- echo.
- echo This script disables some spy-features of Windows 10.
- echo Feel free to modify the script to fit your needs.
- echo.
- echo !!!! Please run with administrative permissions !!!!
- echo.
- echo Press any key to continue.
- pause > nul
- cls
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v AITEnable /t REG_DWORD /d 0 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableUAR /t REG_DWORD /d 1 /f
- reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language" /v Enabled /t REG_DWORD /d 0 /f
- reg add "HKCU\SOFTWARE\Microsoft\Personalization\Settings" /v AcceptedPrivacyPolicy /t REG_DWORD /d 0 /f
- reg add "HKCU\SOFTWARE\Microsoft\InputPersonalization\" /v RestrictImplicitTextCollection /t REG_DWORD /d 1 /f
- reg add "HKCU\SOFTWARE\Microsoft\InputPersonalization\" /v RestrictImplicitInkCollection /t REG_DWORD /d 1 /f
- reg add "HKCU\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore\" /v HarvestContacts /t REG_DWORD /d 0 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableInventory /t REG_DWORD /d 1 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v DisableLocation /t REG_DWORD /d 1 /f
- reg delete "HKCU\SOFTWARE\Microsoft\Siuf\Rules" /v PeriodInNanoSeconds /f
- reg add "HKCU\SOFTWARE\Microsoft\Siuf\Rules" /v NumberOfSIUFInPeriod /t REG_DWORD /d 0 /f
- ::reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v DisableFileSyncNGSC /t REG_DWORD /d 1 /f
- reg add "HKLM\System\CurrentControlSet\Control\Storage\EnabledDenyGP" /v DenyAllGPState /t REG_DWORD /d 1 /f
- reg add "HKCU\SOFTWARE\Microsoft\Input\TIPC" /v Enabled /t REG_DWORD /d 0 /f
- reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v EnableWebContentEvaluation /t REG_DWORD /d 0 /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo\" /v Enabled /t REG_DWORD /d 0 /f
- reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo\" /v Enabled /t REG_DWORD /d 0 /f
- reg add "HKLM\System\CurrentControlSet\Services\DiagTrack" /v Start /t REG_DWORD /d 4 /f
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v DODownloadMode /t REG_DWORD /d 0 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v NoLockScreenCamera /t REG_DWORD /d 1 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CredUI" /v DisablePasswordReveal /t REG_DWORD /d 1 /f
- reg add "HKCU\Control Panel\International\User Profile\" /v HttpAcceptLanguageOptOut /t REG_DWORD /d 1 /f
- reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" /v BingSearchEnabled /t REG_DWORD /d 0 /f
- reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d 1 /f
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener\" /v Start /t REG_DWORD /d 0 /f
- reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\MTCUVC" /v EnableMtcUvc /t REG_DWORD /d 0 /f
- ::Background Apps
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Office.OneNote_17.4229.10061.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.People_1.10241.0.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.ContentDeliveryManager_10.0.10240.16384_neutral_neutral_cw5n1h2txyewy" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.ContentDeliveryManager_10.0.10240.16384_neutral_neutral_cw5n1h2txyewy\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Cortana_1.4.8.176_neutral_neutral_cw5n1h2txyewy" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Cortana_1.4.8.176_neutral_neutral_cw5n1h2txyewy\Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_15.721.12350.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_15.803.16240.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsAlarms_10.1506.19010.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\microsoft.windowscommunicationsapps_17.6020.42011.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsMaps_4.1506.50715.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsPhone_10.1507.17010.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsStore_2015.7.1.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsStore_2015.8.3.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsStore_2015.8.3.0_x64__8wekyb3d8bbwe\Microsoft.WindowsStore_8wekyb3d8bbwe!App" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.XboxApp_5.6.17000.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.XboxApp_7.7.29027.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.ZuneMusic_3.6.10841.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.ZuneMusic_3.6.12101.0_x64__8wekyb3d8bbwe" /v Disabled /t REG_DWORD /d 1 /f
- ::Defender Submissions
- ::powershell {cmd("HKLM:\SOFTWARE\Microsoft\Windows Defender\Spynet")}
- ::reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Spynet" /v SpyNetReporting /t REG_DWORD /d 0 /f
- ::reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Spynet" /v SubmitSamplesConsent /t REG_DWORD /d 0 /f
- ::Services
- sc config DcpSvc start=disabled
- sc config DiagTrack start=disabled
- sc config diagnosticshub.standardcollector.service start=disabled
- sc config dmwappushservice start=disabled
- sc config RetailDemo start=disabled
- cd C:\ProgramData\Microsoft\Diagnosis\ETLLogs\AutoLogger
- echo "" > AutoLogger-Diagtrack-Listener.etl
- cacls AutoLogger-Diagtrack-Listener.etl /d SYSTEM
- powershell "New-NetFirewallRule -DisplayName "svchostTelemetry" -Direction Outbound -Action Block -Profile "Domain, Private, Public" -Program "C:\windows\system32\svchost.exe" -Service DiagTrack"
- powershell "New-NetFirewallRule -DisplayName "Search" -Direction Outbound -Action Block -Profile "Domain, Private, Public" -Program "C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe""
- powershell "Get-ChildItem -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global" -Recurse | ForEach-Object { Set-ItemProperty -Path $_.PSPath -Name Value -Value "Deny" }"
- powershell "Get-ChildItem -Path "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features" -Recurse | ForEach-Object { Set-ItemProperty -Path $_.PSPath -Name FeatureStates -Value "828" -Type DWord}"
- ::powershell "Get-ChildItem -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" -Recurse | ForEach-Object { Set-ItemProperty -Path $_.PSPath -Name Disabled -Value "1" -Type DWord}"
- ::Sceduled Tasks
- schtasks /Change /Disable /tn "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
- schtasks /Change /Disable /tn "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
- schtasks /Change /Disable /tn "\Microsoft\Windows\Customer Experience Improvement Program\BthSQM"
- schtasks /Change /Disable /tn "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
- schtasks /Change /Disable /tn "\Microsoft\Windows\Application Experience\ProgramDataUpdater"
- schtasks /Change /Disable /tn "\Microsoft\Windows\Application Experience\StartupAppTask"
- schtasks /Change /Disable /tn "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
- schtasks /Change /Disable /tn "\Microsoft\Windows\Autochk\Proxy"
- schtasks /Change /Disable /tn "\Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan"
- schtasks /Change /Disable /tn "\Microsoft\Windows\Windows Defender\Windows Defender Verification"
- schtasks /Change /Disable /tn "\Microsoft\Windows\WindowsUpdate\Automatic App Update"
- schtasks /Change /Disable /tn "\Microsoft\Windows\WindowsBackup\Windows Backup Monitor"
- schtasks /Change /Disable /tn "\Microsoft\Windows\WindowsBackup\AutomaticBackup"
- schtasks /Change /Disable /tn "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector"
- schtasks /Change /Disable /tn "\Microsoft\Windows\Diagnosis\Scheduled"
- echo ## BEGIN Windows 10 privacy settings ##>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 vortex.data.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 vortex-win.data.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 telecommand.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 telecommand.telemetry.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 oca.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 oca.telemetry.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 sqm.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 sqm.telemetry.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 watson.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 watson.telemetry.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 redir.metaservices.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 choice.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 choice.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 df.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 reports.wes.df.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 wes.df.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 services.wes.df.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 sqm.df.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 watson.ppe.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 telemetry.appex.bing.net>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 telemetry.urs.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 telemetry.appex.bing.net:443>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 settings-sandbox.data.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 vortex-sandbox.data.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 survey.watson.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 watson.live.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 watson.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 statsfe2.ws.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 corpext.msitadfs.glbdns2.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 compatexchange.cloudapp.net>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 cs1.wpc.v0cdn.net>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 a-0001.a-msedge.net>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 statsfe2.update.microsoft.com.akadns.net>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 diagnostics.support.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 corp.sts.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 statsfe1.ws.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 pre.footprintpredict.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 i1.services.social.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 i1.services.social.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 bingads.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo 127.0.0.1 www.bingads.microsoft.com>>%windir%\system32\drivers\etc\hosts
- echo ## END Windows 10 privacy settings ##>>%windir%\system32\drivers\etc\hosts
- cls
- echo.
- SET /P yesno=Jetzt neustarten? (Empfohlen! Speichern Sie Ihre Arbeiten!) - Reboot now? (Recommended! Save your work now!) [Y/n]:
- IF /i "%yesno%"=="y" GOTO reboot
- GOTO end
- :reboot
- shutdown /r /f /t 1
- GOTO end
- :end
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement