SHARE
TWEET

W10Tel.cmd

Ibra86 Sep 20th, 2018 (edited) 1,958 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. %windir%\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || (
  3. echo ==== ERROR ====
  4. echo This script require administrator privileges.
  5. echo To do so, right click on this script and select 'Run as administrator'
  6. echo.
  7. echo Press any key to exit...
  8. pause >nul
  9. goto :eof
  10. )
  11.  
  12. for /f "tokens=6 delims=[]. " %%# in ('ver') do set winbuild=%%#
  13. if %winbuild% gtr 7601 goto :proceed
  14.  
  15. :: ############################
  16. :: # End Of Support KB4493132 #
  17. :: ############################
  18. reg add HKCU\Software\Microsoft\Windows\CurrentVersion\SipNotify /f /v DontRemindMe /t REG_DWORD /d 1
  19. reg add HKCU\Software\Microsoft\Windows\CurrentVersion\SipNotify /f /v DateModified /t REG_QWORD /d 0x0
  20. reg add HKCU\Software\Microsoft\Windows\CurrentVersion\SipNotify /f /v LastShown /t REG_QWORD /d 0x0
  21. schtasks /Change /DISABLE /TN "Microsoft\Windows\End Of Support\Notify1"
  22. schtasks /Change /DISABLE /TN "Microsoft\Windows\End Of Support\Notify2"
  23. schtasks /Delete /F /TN "Microsoft\Windows\End Of Support\Notify1"
  24. schtasks /Delete /F /TN "Microsoft\Windows\End Of Support\Notify2"
  25. set hosts=%windir%\system32\drivers\etc\hosts
  26. findstr /i "RE2JgkA" %hosts% 1>nul 2>nul || (
  27. attrib -r %hosts%
  28. echo 127.0.0.1 query.prod.cms.rt.microsoft.com/cms/api/am/binary/RE2JgkA>>%hosts%
  29. attrib +r %hosts%
  30. attrib -a %hosts%
  31. )
  32.  
  33. :proceed
  34. :: ############################
  35. :: # Unified Telemetry Client #
  36. :: ############################
  37. sc.exe config DiagTrack start= disabled
  38. sc.exe stop DiagTrack
  39. reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\Gwx /v DisableGwx /t REG_DWORD /d 1 /f
  40. reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v DisableOSUpgrade /t REG_DWORD /d 1 /f
  41. reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade" /f
  42. reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade /v AllowOSUpgrade /t REG_DWORD /d 0 /f
  43. reg delete HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection /f
  44. reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack /f
  45. reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack /v DiagTrackAuthorization /t REG_DWORD /d 0 /f
  46. reg add HKLM\SOFTWARE\Microsoft\SQMClient\IE /v CEIPEnable /t REG_DWORD /d 0 /f
  47. reg add HKLM\SOFTWARE\Microsoft\SQMClient\IE /v SqmLoggerRunning /t REG_DWORD /d 0 /f
  48. reg add HKLM\SOFTWARE\Microsoft\SQMClient\Reliability /v CEIPEnable /t REG_DWORD /d 0 /f
  49. reg add HKLM\SOFTWARE\Microsoft\SQMClient\Reliability /v SqmLoggerRunning /t REG_DWORD /d 0 /f
  50. reg add HKLM\SOFTWARE\Microsoft\SQMClient\Windows /v CEIPEnable /t REG_DWORD /d 0 /f
  51. reg add HKLM\SOFTWARE\Microsoft\SQMClient\Windows /v SqmLoggerRunning /t REG_DWORD /d 0 /f
  52. reg add HKLM\SOFTWARE\Microsoft\SQMClient\Windows /v DisableOptinExperience /t REG_DWORD /d 1 /f
  53. reg delete HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener /f
  54. reg delete HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\Diagtrack-Listener /f
  55. reg delete HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger /f
  56. icacls "%ProgramData%\Microsoft\Diagnosis" /grant:r *S-1-5-32-544:(OI)(CI)(IO)(F) /T /C
  57. del /f /q %ProgramData%\Microsoft\Diagnosis\*.rbs
  58. del /f /q /s %ProgramData%\Microsoft\Diagnosis\ETLLogs\*
  59.  
  60. :: #####################################
  61. :: # Microsoft Compatibility Appraiser #
  62. :: #####################################
  63. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Appraiser" /f
  64. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Appraiser" /v HaveUploadedForTarget /t REG_DWORD /d 1 /f
  65. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\AIT" /v AITEnable /t REG_DWORD /d 0 /f
  66. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\ClientTelemetry" /f
  67. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\ClientTelemetry" /v DontRetryOnError /t REG_DWORD /d 1 /f
  68. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\ClientTelemetry" /v IsCensusDisabled /t REG_DWORD /d 1 /f
  69. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\ClientTelemetry" /v TaskEnableRun /t REG_DWORD /d 1 /f
  70. for %%i in (InstallInfoCheck,ARPInfoCheck,MediaInfoCheck,FileInfoCheck) do reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Tracing" /v %%i /t REG_DWORD /d 0 /f
  71. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags" /v UpgradeEligible /f
  72. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\TelemetryController" /f
  73. schtasks /Change /DISABLE /TN "Microsoft\Windows\SetupSQMTask"
  74. schtasks /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\BthSQM"
  75. schtasks /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
  76. schtasks /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
  77. schtasks /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\TelTask"
  78. schtasks /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
  79. schtasks /Change /DISABLE /TN "Microsoft\Windows\Application Experience\AitAgent"
  80. schtasks /Change /DISABLE /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
  81. schtasks /Change /DISABLE /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater"
  82. schtasks /Change /DISABLE /TN "Microsoft\Windows\PerfTrack\BackgroundConfigSurveyor"
  83. schtasks /Delete /F /TN "Microsoft\Windows\SetupSQMTask"
  84. schtasks /Delete /F /TN "Microsoft\Windows\Customer Experience Improvement Program\BthSQM"
  85. schtasks /Delete /F /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
  86. schtasks /Delete /F /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
  87. schtasks /Delete /F /TN "Microsoft\Windows\Customer Experience Improvement Program\TelTask"
  88. schtasks /Delete /F /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
  89. schtasks /Delete /F /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
  90. schtasks /Delete /F /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater"
  91. schtasks /Delete /F /TN "Microsoft\Windows\Application Experience\AitAgent"
  92. schtasks /Delete /F /TN "Microsoft\Windows\PerfTrack\BackgroundConfigSurveyor"
  93. echo.
  94. echo.
  95. echo Closing in 5 Seconds...
  96. timeout /t 5 >nul
  97. goto :eof
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top