Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- color 0a
- cls
- echo "##################################################################"
- echo "# *Echo is left on for debugging #"
- echo "# *BLOCK these updates in Windows Updates or WSUS after you #"
- echo "# run this script: #"
- echo "# KB2984972 Concurrent RDP Killer (Run Concurent RDP Patcher) #"
- echo "# KB3003743 Concurrent RDP Killer (Run Concurent RDP Patcher) #"
- echo "# KB3068708 Windows Telemetry #"
- echo "# KB3022345 Windows Telemetry #"
- echo "# KB2952664 Windows Telemetry #"
- echo "# KB2990214 Windows Telemetry #"
- echo "# KB3035583 Windows Telemetry #"
- echo "# KB971033 Windows Telemetry #"
- echo "# KB3021917 Windows Telemetry #"
- echo "# KB3044374 Windows Telemetry #"
- echo "# KB3075249 Windows Telemetry #"
- echo "# KB3080149 Windows Telemetry #"
- echo "# #"
- echo "# *ascardina@2issi.com #"
- echo "##################################################################"
- pause
- echo on
- cls
- rem Concurrent RDP killer (Install "Concurrent RDP Patcher" after running this [optional])
- wusa /uninstall /kb:KB2984972 /quiet /norestart
- wusa /uninstall /kb:KB3003743 /quiet /norestart
- rem Telemetry updates
- wusa /uninstall /kb:3068708 /quiet /norestart
- wusa /uninstall /kb:3022345 /quiet /norestart
- wusa /uninstall /kb:2952664 /quiet /norestart
- wusa /uninstall /kb:2990214 /quiet /norestart
- wusa /uninstall /kb:3035583 /quiet /norestart
- wusa /uninstall /kb:971033 /quiet /norestart
- wusa /uninstall /kb:3021917 /quiet /norestart
- wusa /uninstall /kb:3044374 /quiet /norestart
- wusa /uninstall /kb:3075249 /quiet /norestart
- wusa /uninstall /kb:3080149 /quiet /norestart
- rem Diagnostics and Tracking
- sc stop Diagtrack
- sc delete Diagtrack
- rem Disable Remote Registry
- sc config remoteregistry start= disabled
- sc stop remoteregistry
- rem Telemetry tasks
- rem schtasks /Change /TN <taskname> /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Application Experience\AitAgent" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Application Experience\ProgramDataUpdater" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Autochk\Proxy" /DISABLE
- schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /DISABLE
- schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /DISABLE
- schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Maintenance\WinSAT" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\ActivateWindowsSearch" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\ConfigureInternetTimeService" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\DispatchRecoveryTasks" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\ehDRMInit" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\InstallPlayReady" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\mcupdate" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\MediaCenterRecoveryTask" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\ObjectStoreRecoveryTask" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\OCURActivate" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\OCURDiscovery" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\PBDADiscovery" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\PBDADiscoveryW1" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\PBDADiscoveryW2" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\PvrRecoveryTask" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\PvrScheduleTask" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\RegisterSearch" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\ReindexSearchRoot" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\SqlLiteRecoveryTask" /DISABLE
- schtasks /Change /TN "\Microsoft\Windows\Media Center\UpdateRecordPath" /DISABLE
- rem Telemetry hosts
- echo # >> C:\Windows\System32\drivers\etc\hosts
- echo ############################################################################# >> C:\Windows\System32\drivers\etc\hosts
- echo #"Below this line are blacklisted hosts which collect telemetry for Microsoft." >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 vortex.data.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 vortex-win.data.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 telecommand.telemetry.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 telecommand.telemetry.microsoft.com.nsatc.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 oca.telemetry.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 oca.telemetry.microsoft.com.nsatc.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 sqm.telemetry.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 sqm.telemetry.microsoft.com.nsatc.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 watson.telemetry.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 watson.telemetry.microsoft.com.nsatc.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 redir.metaservices.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 choice.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 choice.microsoft.com.nsatc.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 df.telemetry.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 reports.wes.df.telemetry.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 wes.df.telemetry.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 services.wes.df.telemetry.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 sqm.df.telemetry.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 telemetry.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 watson.ppe.telemetry.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 telemetry.appex.bing.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 telemetry.urs.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 telemetry.appex.bing.net:443 >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 settings-sandbox.data.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 vortex-sandbox.data.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 survey.watson.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 watson.live.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 watson.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 statsfe2.ws.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 corpext.msitadfs.glbdns2.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 compatexchange.cloudapp.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 cs1.wpc.v0cdn.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 a-0001.a-msedge.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 statsfe2.update.microsoft.com.akadns.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 sls.update.microsoft.com.akadns.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 fe2.update.microsoft.com.akadns.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 diagnostics.support.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 corp.sts.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 statsfe1.ws.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 pre.footprintpredict.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 i1.services.social.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 i1.services.social.microsoft.com.nsatc.net >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 feedback.windows.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 feedback.microsoft-hohm.com >> C:\Windows\System32\drivers\etc\hosts
- echo 127.0.0.1 feedback.search.microsoft.com >> C:\Windows\System32\drivers\etc\hosts
- echo #"Above this line are blacklisted hosts which collect telemetry for Microsoft." >> C:\Windows\System32\drivers\etc\hosts
- echo ############################################################################# >> C:\Windows\System32\drivers\etc\hosts
- echo # >> C:\Windows\System32\drivers\etc\hosts
- rem ask user to review
- echo Review the above to see if anything failed
- pause
- rem Advise user to REBOOT
- echo off
- cls
- echo REBOOT YOUR COMPUTER WHEN YOU'RE DONE WITH THIS SCRIPT!
- pause
- ping -n 2 127.0.0.1 > nul
- echo Goodbye
- exit
- rem EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement