Advertisement
Mquadrat

Windows 10 Anti-Telemetry CMD

Aug 13th, 2015
3,240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.62 KB | None | 0 0
  1. ::This Script disables a lot of the Windows 10 telemetry. Have fun. (Improvements/Enhancements are welcome)
  2. :: -> Run this .cmd file as administrator!
  3. ::Dieses Script deaktiviert einen Großteil der Windows 10 Telemetriefunktionen. (Verbesserungen/Erweiterungen sind gern gesehen)
  4. :: Version 0.4 - Windows 10 only!
  5. :: 14.08.2015
  6.  
  7. @echo off
  8. color 0e
  9. echo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10. echo %% Windows 10 Antispy %%
  11. echo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  12. echo.
  13. echo This script disables some spy-features of Windows 10.
  14. echo Feel free to modify the script to fit your needs.
  15. echo.
  16. echo !!!! Please run with administrative permissions !!!!
  17. echo.
  18. echo Press any key to continue.
  19. pause > nul
  20. cls
  21.  
  22. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
  23. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
  24. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v AITEnable /t REG_DWORD /d 0 /f
  25. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableUAR /t REG_DWORD /d 1 /f
  26. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language" /v Enabled /t REG_DWORD /d 0 /f
  27. reg add "HKCU\SOFTWARE\Microsoft\Personalization\Settings" /v AcceptedPrivacyPolicy /t REG_DWORD /d 0 /f
  28. reg add "HKCU\SOFTWARE\Microsoft\InputPersonalization\" /v RestrictImplicitTextCollection /t REG_DWORD /d 1 /f
  29. reg add "HKCU\SOFTWARE\Microsoft\InputPersonalization\" /v RestrictImplicitInkCollection /t REG_DWORD /d 1 /f
  30. reg add "HKCU\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore\" /v HarvestContacts /t REG_DWORD /d 0 /f
  31. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableInventory /t REG_DWORD /d 1 /f
  32. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v DisableLocation /t REG_DWORD /d 1 /f
  33. reg delete "HKCU\SOFTWARE\Microsoft\Siuf\Rules" /v PeriodInNanoSeconds /f
  34. reg add "HKCU\SOFTWARE\Microsoft\Siuf\Rules" /v NumberOfSIUFInPeriod /t REG_DWORD /d 0 /f
  35. ::reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\OneDrive" /v DisableFileSyncNGSC /t REG_DWORD /d 1 /f
  36. reg add "HKLM\System\CurrentControlSet\Control\Storage\EnabledDenyGP" /v DenyAllGPState /t REG_DWORD /d 1 /f
  37. reg add "HKCU\SOFTWARE\Microsoft\Input\TIPC" /v Enabled /t REG_DWORD /d 0 /f
  38. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v EnableWebContentEvaluation /t REG_DWORD /d 0 /f
  39. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo\" /v Enabled /t REG_DWORD /d 0 /f
  40. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo\" /v Enabled /t REG_DWORD /d 0 /f
  41. reg add "HKLM\System\CurrentControlSet\Services\DiagTrack" /v Start /t REG_DWORD /d 4 /f
  42. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v DODownloadMode /t REG_DWORD /d 0 /f
  43.  
  44. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f
  45. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v NoLockScreenCamera /t REG_DWORD /d 1 /f
  46. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CredUI" /v DisablePasswordReveal /t REG_DWORD /d 1 /f
  47. reg add "HKCU\Control Panel\International\User Profile\" /v HttpAcceptLanguageOptOut /t REG_DWORD /d 1 /f
  48. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" /v BingSearchEnabled /t REG_DWORD /d 0 /f
  49. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f
  50. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d 1 /f
  51. reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener\" /v Start /t REG_DWORD /d 0 /f
  52. reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\MTCUVC" /v EnableMtcUvc /t REG_DWORD /d 0 /f
  53.  
  54. ::Background Apps
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74.  
  75. ::Defender Submissions
  76. ::powershell {cmd("HKLM:\SOFTWARE\Microsoft\Windows Defender\Spynet")}
  77. ::reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Spynet" /v SpyNetReporting /t REG_DWORD /d 0 /f
  78. ::reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Spynet" /v SubmitSamplesConsent /t REG_DWORD /d 0 /f
  79.  
  80. ::Services
  81. sc config DcpSvc start=disabled
  82. sc config DiagTrack start=disabled
  83. sc config diagnosticshub.standardcollector.service start=disabled
  84. sc config dmwappushservice start=disabled
  85. sc config RetailDemo start=disabled
  86.  
  87. cd C:\ProgramData\Microsoft\Diagnosis\ETLLogs\AutoLogger
  88. echo "" > AutoLogger-Diagtrack-Listener.etl
  89. cacls AutoLogger-Diagtrack-Listener.etl /d SYSTEM
  90.  
  91. powershell "New-NetFirewallRule -DisplayName "svchostTelemetry" -Direction Outbound -Action Block -Profile "Domain, Private, Public" -Program "C:\windows\system32\svchost.exe" -Service DiagTrack"
  92. powershell "New-NetFirewallRule -DisplayName "Search" -Direction Outbound -Action Block -Profile "Domain, Private, Public" -Program "C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe""
  93. powershell "Get-ChildItem -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global" -Recurse | ForEach-Object { Set-ItemProperty -Path $_.PSPath -Name Value -Value "Deny" }"
  94. powershell "Get-ChildItem -Path "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features" -Recurse | ForEach-Object { Set-ItemProperty -Path $_.PSPath -Name FeatureStates -Value "828" -Type DWord}"
  95. ::powershell "Get-ChildItem -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" -Recurse | ForEach-Object { Set-ItemProperty -Path $_.PSPath -Name Disabled -Value "1" -Type DWord}"
  96.  
  97. ::Sceduled Tasks
  98. schtasks /Change /Disable /tn "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
  99. schtasks /Change /Disable /tn "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
  100. schtasks /Change /Disable /tn "\Microsoft\Windows\Customer Experience Improvement Program\BthSQM"
  101. schtasks /Change /Disable /tn "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
  102. schtasks /Change /Disable /tn "\Microsoft\Windows\Application Experience\ProgramDataUpdater"
  103. schtasks /Change /Disable /tn "\Microsoft\Windows\Application Experience\StartupAppTask"
  104. schtasks /Change /Disable /tn "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
  105. schtasks /Change /Disable /tn "\Microsoft\Windows\Autochk\Proxy"
  106. schtasks /Change /Disable /tn "\Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan"
  107. schtasks /Change /Disable /tn "\Microsoft\Windows\Windows Defender\Windows Defender Verification"
  108. schtasks /Change /Disable /tn "\Microsoft\Windows\WindowsUpdate\Automatic App Update"
  109. schtasks /Change /Disable /tn "\Microsoft\Windows\WindowsBackup\Windows Backup Monitor"
  110. schtasks /Change /Disable /tn "\Microsoft\Windows\WindowsBackup\AutomaticBackup"
  111. schtasks /Change /Disable /tn "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector"
  112. schtasks /Change /Disable /tn "\Microsoft\Windows\Diagnosis\Scheduled"
  113.  
  114. echo ## BEGIN Windows 10 privacy settings ##>>%windir%\system32\drivers\etc\hosts
  115. echo 127.0.0.1 vortex.data.microsoft.com>>%windir%\system32\drivers\etc\hosts
  116. echo 127.0.0.1 vortex-win.data.microsoft.com>>%windir%\system32\drivers\etc\hosts
  117. echo 127.0.0.1 telecommand.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
  118. echo 127.0.0.1 telecommand.telemetry.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
  119. echo 127.0.0.1 oca.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
  120. echo 127.0.0.1 oca.telemetry.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
  121. echo 127.0.0.1 sqm.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
  122. echo 127.0.0.1 sqm.telemetry.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
  123. echo 127.0.0.1 watson.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
  124. echo 127.0.0.1 watson.telemetry.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
  125. echo 127.0.0.1 redir.metaservices.microsoft.com>>%windir%\system32\drivers\etc\hosts
  126. echo 127.0.0.1 choice.microsoft.com>>%windir%\system32\drivers\etc\hosts
  127. echo 127.0.0.1 choice.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
  128. echo 127.0.0.1 df.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
  129. echo 127.0.0.1 reports.wes.df.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
  130. echo 127.0.0.1 wes.df.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
  131. echo 127.0.0.1 services.wes.df.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
  132. echo 127.0.0.1 sqm.df.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
  133. echo 127.0.0.1 telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
  134. echo 127.0.0.1 watson.ppe.telemetry.microsoft.com>>%windir%\system32\drivers\etc\hosts
  135. echo 127.0.0.1 telemetry.appex.bing.net>>%windir%\system32\drivers\etc\hosts
  136. echo 127.0.0.1 telemetry.urs.microsoft.com>>%windir%\system32\drivers\etc\hosts
  137. echo 127.0.0.1 telemetry.appex.bing.net:443>>%windir%\system32\drivers\etc\hosts
  138. echo 127.0.0.1 settings-sandbox.data.microsoft.com>>%windir%\system32\drivers\etc\hosts
  139. echo 127.0.0.1 vortex-sandbox.data.microsoft.com>>%windir%\system32\drivers\etc\hosts
  140. echo 127.0.0.1 survey.watson.microsoft.com>>%windir%\system32\drivers\etc\hosts
  141. echo 127.0.0.1 watson.live.com>>%windir%\system32\drivers\etc\hosts
  142. echo 127.0.0.1 watson.microsoft.com>>%windir%\system32\drivers\etc\hosts
  143. echo 127.0.0.1 statsfe2.ws.microsoft.com>>%windir%\system32\drivers\etc\hosts
  144. echo 127.0.0.1 corpext.msitadfs.glbdns2.microsoft.com>>%windir%\system32\drivers\etc\hosts
  145. echo 127.0.0.1 compatexchange.cloudapp.net>>%windir%\system32\drivers\etc\hosts
  146. echo 127.0.0.1 cs1.wpc.v0cdn.net>>%windir%\system32\drivers\etc\hosts
  147. echo 127.0.0.1 a-0001.a-msedge.net>>%windir%\system32\drivers\etc\hosts
  148. echo 127.0.0.1 statsfe2.update.microsoft.com.akadns.net>>%windir%\system32\drivers\etc\hosts
  149. echo 127.0.0.1 diagnostics.support.microsoft.com>>%windir%\system32\drivers\etc\hosts
  150. echo 127.0.0.1 corp.sts.microsoft.com>>%windir%\system32\drivers\etc\hosts
  151. echo 127.0.0.1 statsfe1.ws.microsoft.com>>%windir%\system32\drivers\etc\hosts
  152. echo 127.0.0.1 pre.footprintpredict.com>>%windir%\system32\drivers\etc\hosts
  153. echo 127.0.0.1 i1.services.social.microsoft.com>>%windir%\system32\drivers\etc\hosts
  154. echo 127.0.0.1 i1.services.social.microsoft.com.nsatc.net>>%windir%\system32\drivers\etc\hosts
  155. echo 127.0.0.1 bingads.microsoft.com>>%windir%\system32\drivers\etc\hosts
  156. echo 127.0.0.1 www.bingads.microsoft.com>>%windir%\system32\drivers\etc\hosts
  157. echo ## END Windows 10 privacy settings ##>>%windir%\system32\drivers\etc\hosts
  158. cls
  159.  
  160. echo.
  161. SET /P yesno=Jetzt neustarten? (Empfohlen! Speichern Sie Ihre Arbeiten!) - Reboot now? (Recommended! Save your work now!) [Y/n]:
  162.  
  163. IF /i "%yesno%"=="y" GOTO reboot
  164. GOTO end
  165.  
  166. :reboot
  167. shutdown /r /f /t 1
  168. GOTO end
  169.  
  170. :end
  171. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement