Advertisement
NozeDive

Windows Telemetry (updated 1SEP2015)

Aug 8th, 2015
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 9.46 KB | None | 0 0
  1. @echo off
  2. color 0a
  3. cls
  4. echo "##################################################################"
  5. echo "# *Echo is left on for debugging                                 #"
  6. echo "# *BLOCK these updates in Windows Updates or WSUS after you      #"
  7. echo "#  run this script:                                              #"
  8. echo "#   KB2984972 Concurrent RDP Killer (Run Concurent RDP Patcher)  #"
  9. echo "#   KB3003743 Concurrent RDP Killer (Run Concurent RDP Patcher)  #"
  10. echo "#   KB3068708 Windows Telemetry                                  #"
  11. echo "#   KB3022345 Windows Telemetry                                  #"
  12. echo "#   KB2952664 Windows Telemetry                                  #"
  13. echo "#   KB2990214 Windows Telemetry                                  #"
  14. echo "#   KB3035583 Windows Telemetry                                  #"
  15. echo "#   KB971033  Windows Telemetry                                  #"
  16. echo "#   KB3021917 Windows Telemetry                                  #"
  17. echo "#   KB3044374 Windows Telemetry                                  #"
  18. echo "#   KB3075249 Windows Telemetry                                  #"
  19. echo "#   KB3080149 Windows Telemetry                                  #"
  20. echo "#                                                                #"
  21. echo "# *ascardina@2issi.com                                           #"
  22. echo "##################################################################"
  23. pause
  24.  
  25. echo on
  26. cls
  27. rem Concurrent RDP killer (Install "Concurrent RDP Patcher" after running this [optional])
  28. wusa /uninstall /kb:KB2984972 /quiet /norestart
  29. wusa /uninstall /kb:KB3003743  /quiet /norestart
  30.  
  31. rem Telemetry updates
  32. wusa /uninstall /kb:3068708 /quiet /norestart
  33. wusa /uninstall /kb:3022345 /quiet /norestart
  34. wusa /uninstall /kb:2952664 /quiet /norestart
  35. wusa /uninstall /kb:2990214 /quiet /norestart
  36. wusa /uninstall /kb:3035583 /quiet /norestart
  37. wusa /uninstall /kb:971033 /quiet /norestart
  38. wusa /uninstall /kb:3021917 /quiet /norestart
  39. wusa /uninstall /kb:3044374 /quiet /norestart
  40. wusa /uninstall /kb:3075249 /quiet /norestart
  41. wusa /uninstall /kb:3080149 /quiet /norestart
  42.  
  43. rem Diagnostics and Tracking
  44. sc stop Diagtrack
  45. sc delete Diagtrack
  46.  
  47. rem Disable Remote Registry
  48. sc config remoteregistry start= disabled
  49. sc stop remoteregistry
  50.  
  51. rem Telemetry tasks
  52. rem schtasks /Change /TN <taskname> /DISABLE
  53. schtasks /Change /TN "\Microsoft\Windows\Application Experience\AitAgent" /DISABLE
  54. schtasks /Change /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /DISABLE
  55. schtasks /Change /TN "\Microsoft\Windows\Application Experience\ProgramDataUpdater" /DISABLE
  56. schtasks /Change /TN "\Microsoft\Windows\Autochk\Proxy" /DISABLE
  57. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /DISABLE
  58. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /DISABLE
  59. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /DISABLE
  60. schtasks /Change /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /DISABLE
  61. schtasks /Change /TN "\Microsoft\Windows\Maintenance\WinSAT" /DISABLE
  62. schtasks /Change /TN "\Microsoft\Windows\Media Center\ActivateWindowsSearch" /DISABLE
  63. schtasks /Change /TN "\Microsoft\Windows\Media Center\ConfigureInternetTimeService" /DISABLE
  64. schtasks /Change /TN "\Microsoft\Windows\Media Center\DispatchRecoveryTasks" /DISABLE
  65. schtasks /Change /TN "\Microsoft\Windows\Media Center\ehDRMInit" /DISABLE
  66. schtasks /Change /TN "\Microsoft\Windows\Media Center\InstallPlayReady" /DISABLE
  67. schtasks /Change /TN "\Microsoft\Windows\Media Center\mcupdate" /DISABLE
  68. schtasks /Change /TN "\Microsoft\Windows\Media Center\MediaCenterRecoveryTask" /DISABLE
  69. schtasks /Change /TN "\Microsoft\Windows\Media Center\ObjectStoreRecoveryTask" /DISABLE
  70. schtasks /Change /TN "\Microsoft\Windows\Media Center\OCURActivate" /DISABLE
  71. schtasks /Change /TN "\Microsoft\Windows\Media Center\OCURDiscovery" /DISABLE
  72. schtasks /Change /TN "\Microsoft\Windows\Media Center\PBDADiscovery" /DISABLE
  73. schtasks /Change /TN "\Microsoft\Windows\Media Center\PBDADiscoveryW1" /DISABLE
  74. schtasks /Change /TN "\Microsoft\Windows\Media Center\PBDADiscoveryW2" /DISABLE
  75. schtasks /Change /TN "\Microsoft\Windows\Media Center\PvrRecoveryTask" /DISABLE
  76. schtasks /Change /TN "\Microsoft\Windows\Media Center\PvrScheduleTask" /DISABLE
  77. schtasks /Change /TN "\Microsoft\Windows\Media Center\RegisterSearch" /DISABLE
  78. schtasks /Change /TN "\Microsoft\Windows\Media Center\ReindexSearchRoot" /DISABLE
  79. schtasks /Change /TN "\Microsoft\Windows\Media Center\SqlLiteRecoveryTask" /DISABLE
  80. schtasks /Change /TN "\Microsoft\Windows\Media Center\UpdateRecordPath" /DISABLE
  81.  
  82. rem Telemetry hosts
  83. echo #  >>  C:\Windows\System32\drivers\etc\hosts
  84. echo ############################################################################# >>  C:\Windows\System32\drivers\etc\hosts
  85. echo #"Below this line are blacklisted hosts which collect telemetry for Microsoft." >>  C:\Windows\System32\drivers\etc\hosts
  86. echo 127.0.0.1 vortex.data.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  87. echo 127.0.0.1 vortex-win.data.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  88. echo 127.0.0.1 telecommand.telemetry.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  89. echo 127.0.0.1 telecommand.telemetry.microsoft.com.nsatc.net >>  C:\Windows\System32\drivers\etc\hosts
  90. echo 127.0.0.1 oca.telemetry.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  91. echo 127.0.0.1 oca.telemetry.microsoft.com.nsatc.net >>  C:\Windows\System32\drivers\etc\hosts
  92. echo 127.0.0.1 sqm.telemetry.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  93. echo 127.0.0.1 sqm.telemetry.microsoft.com.nsatc.net >>  C:\Windows\System32\drivers\etc\hosts
  94. echo 127.0.0.1 watson.telemetry.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  95. echo 127.0.0.1 watson.telemetry.microsoft.com.nsatc.net >>  C:\Windows\System32\drivers\etc\hosts
  96. echo 127.0.0.1 redir.metaservices.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  97. echo 127.0.0.1 choice.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  98. echo 127.0.0.1 choice.microsoft.com.nsatc.net >>  C:\Windows\System32\drivers\etc\hosts
  99. echo 127.0.0.1 df.telemetry.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  100. echo 127.0.0.1 reports.wes.df.telemetry.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  101. echo 127.0.0.1 wes.df.telemetry.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  102. echo 127.0.0.1 services.wes.df.telemetry.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  103. echo 127.0.0.1 sqm.df.telemetry.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  104. echo 127.0.0.1 telemetry.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  105. echo 127.0.0.1 watson.ppe.telemetry.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  106. echo 127.0.0.1 telemetry.appex.bing.net >>  C:\Windows\System32\drivers\etc\hosts
  107. echo 127.0.0.1 telemetry.urs.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  108. echo 127.0.0.1 telemetry.appex.bing.net:443 >>  C:\Windows\System32\drivers\etc\hosts
  109. echo 127.0.0.1 settings-sandbox.data.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  110. echo 127.0.0.1 vortex-sandbox.data.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  111. echo 127.0.0.1 survey.watson.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  112. echo 127.0.0.1 watson.live.com >>  C:\Windows\System32\drivers\etc\hosts
  113. echo 127.0.0.1 watson.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  114. echo 127.0.0.1 statsfe2.ws.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  115. echo 127.0.0.1 corpext.msitadfs.glbdns2.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  116. echo 127.0.0.1 compatexchange.cloudapp.net >>  C:\Windows\System32\drivers\etc\hosts
  117. echo 127.0.0.1 cs1.wpc.v0cdn.net >>  C:\Windows\System32\drivers\etc\hosts
  118. echo 127.0.0.1 a-0001.a-msedge.net >>  C:\Windows\System32\drivers\etc\hosts
  119. echo 127.0.0.1 statsfe2.update.microsoft.com.akadns.net >>  C:\Windows\System32\drivers\etc\hosts
  120. echo 127.0.0.1 sls.update.microsoft.com.akadns.net >>  C:\Windows\System32\drivers\etc\hosts
  121. echo 127.0.0.1 fe2.update.microsoft.com.akadns.net >>  C:\Windows\System32\drivers\etc\hosts
  122. echo 127.0.0.1 diagnostics.support.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  123. echo 127.0.0.1 corp.sts.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  124. echo 127.0.0.1 statsfe1.ws.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  125. echo 127.0.0.1 pre.footprintpredict.com >>  C:\Windows\System32\drivers\etc\hosts
  126. echo 127.0.0.1 i1.services.social.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  127. echo 127.0.0.1 i1.services.social.microsoft.com.nsatc.net >>  C:\Windows\System32\drivers\etc\hosts
  128. echo 127.0.0.1 feedback.windows.com >>  C:\Windows\System32\drivers\etc\hosts
  129. echo 127.0.0.1 feedback.microsoft-hohm.com >>  C:\Windows\System32\drivers\etc\hosts
  130. echo 127.0.0.1 feedback.search.microsoft.com >>  C:\Windows\System32\drivers\etc\hosts
  131. echo #"Above this line are blacklisted hosts which collect telemetry for Microsoft." >>  C:\Windows\System32\drivers\etc\hosts
  132. echo ############################################################################# >>  C:\Windows\System32\drivers\etc\hosts
  133. echo #  >>  C:\Windows\System32\drivers\etc\hosts
  134.  
  135. rem ask user to review
  136. echo Review the above to see if anything failed
  137. pause
  138.  
  139. rem Advise user to REBOOT
  140. echo off
  141. cls
  142. echo REBOOT YOUR COMPUTER WHEN YOU'RE DONE WITH THIS SCRIPT!
  143. pause
  144. ping -n 2 127.0.0.1 > nul
  145. echo Goodbye
  146. exit
  147.  
  148. rem EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement