Ibra86

W10Tel.cmd

Sep 20th, 2018
8,941
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. :: # EOS 2019-12 KB4530734    #
  17. :: ############################
  18. reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\EOSNotify /f /v DiscontinueEOS /t REG_DWORD /d 1
  19. reg add HKCU\Software\Microsoft\Windows\CurrentVersion\EOSNotify /f /v DiscontinueEOS /t REG_DWORD /d 1
  20. reg add HKCU\Software\Microsoft\Windows\CurrentVersion\EOSNotify /f /v DontRemindMe /t REG_DWORD /d 1
  21. reg add HKCU\Software\Microsoft\Windows\CurrentVersion\EOSNotify /f /v LastRunTimestamp /t REG_QWORD /d 0x0
  22. reg add HKCU\Software\Microsoft\Windows\CurrentVersion\EOSNotify /f /v TimestampOverride /t REG_QWORD /d 0x0
  23. schtasks /Change /DISABLE /TN "Microsoft\Windows\Setup\EOSNotify"
  24. schtasks /Change /DISABLE /TN "Microsoft\Windows\Setup\EOSNotify2"
  25. schtasks /Delete /F /TN "Microsoft\Windows\Setup\EOSNotify"
  26. schtasks /Delete /F /TN "Microsoft\Windows\Setup\EOSNotify2"
  27.  
  28. :: ############################
  29. :: # EOS KB4493132/KB4524752  #
  30. :: ############################
  31. reg add HKCU\Software\Microsoft\Windows\CurrentVersion\SipNotify /f /v DontRemindMe /t REG_DWORD /d 1
  32. reg add HKCU\Software\Microsoft\Windows\CurrentVersion\SipNotify /f /v DateModified /t REG_QWORD /d 0x0
  33. reg add HKCU\Software\Microsoft\Windows\CurrentVersion\SipNotify /f /v LastShown /t REG_QWORD /d 0x0
  34. schtasks /Change /DISABLE /TN "Microsoft\Windows\End Of Support\Notify1"
  35. schtasks /Change /DISABLE /TN "Microsoft\Windows\End Of Support\Notify2"
  36. schtasks /Delete /F /TN "Microsoft\Windows\End Of Support\Notify1"
  37. schtasks /Delete /F /TN "Microsoft\Windows\End Of Support\Notify2"
  38. set hosts=%windir%\system32\drivers\etc\hosts
  39. findstr /i "RE2JgkA" %hosts% 1>nul 2>nul || (
  40. attrib -r %hosts%
  41. echo 127.0.0.1 query.prod.cms.rt.microsoft.com/cms/api/am/binary/RE2JgkA>>%hosts%
  42. attrib +r %hosts%
  43. attrib -a %hosts%
  44. )
  45. rd /s /q "%LocalAppData%\Microsoft\Windows\SipNotify" 1>nul 2>nul
  46.  
  47. :proceed
  48. :: ############################
  49. :: # Unified Telemetry Client #
  50. :: ############################
  51. sc.exe config DiagTrack start= disabled
  52. sc.exe stop DiagTrack
  53. reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\Gwx /v DisableGwx /t REG_DWORD /d 1 /f
  54. reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v DisableOSUpgrade /t REG_DWORD /d 1 /f
  55. reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade" /f
  56. reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade /v AllowOSUpgrade /t REG_DWORD /d 0 /f
  57. reg delete HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection /f
  58. reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack /f
  59. reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack /v DiagTrackAuthorization /t REG_DWORD /d 0 /f
  60. reg add HKLM\SOFTWARE\Microsoft\SQMClient\IE /v CEIPEnable /t REG_DWORD /d 0 /f
  61. reg add HKLM\SOFTWARE\Microsoft\SQMClient\IE /v SqmLoggerRunning /t REG_DWORD /d 0 /f
  62. reg add HKLM\SOFTWARE\Microsoft\SQMClient\Reliability /v CEIPEnable /t REG_DWORD /d 0 /f
  63. reg add HKLM\SOFTWARE\Microsoft\SQMClient\Reliability /v SqmLoggerRunning /t REG_DWORD /d 0 /f
  64. reg add HKLM\SOFTWARE\Microsoft\SQMClient\Windows /v CEIPEnable /t REG_DWORD /d 0 /f
  65. reg add HKLM\SOFTWARE\Microsoft\SQMClient\Windows /v SqmLoggerRunning /t REG_DWORD /d 0 /f
  66. reg add HKLM\SOFTWARE\Microsoft\SQMClient\Windows /v DisableOptinExperience /t REG_DWORD /d 1 /f
  67. reg delete HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener /f
  68. reg delete HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\Diagtrack-Listener /f
  69. rem reg delete HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger /f
  70. icacls "%ProgramData%\Microsoft\Diagnosis" /grant:r *S-1-5-32-544:(OI)(CI)(IO)(F) /T /C
  71. del /f /q %ProgramData%\Microsoft\Diagnosis\*.rbs
  72. del /f /q /s %ProgramData%\Microsoft\Diagnosis\ETLLogs\*
  73.  
  74. :: #####################################
  75. :: # Microsoft Compatibility Appraiser #
  76. :: #####################################
  77. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Appraiser" /f
  78. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Appraiser" /v HaveUploadedForTarget /t REG_DWORD /d 1 /f
  79. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\AIT" /v AITEnable /t REG_DWORD /d 0 /f
  80. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\ClientTelemetry" /f
  81. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\ClientTelemetry" /v DontRetryOnError /t REG_DWORD /d 1 /f
  82. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\ClientTelemetry" /v IsCensusDisabled /t REG_DWORD /d 1 /f
  83. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\ClientTelemetry" /v TaskEnableRun /t REG_DWORD /d 1 /f
  84. 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
  85. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags" /v UpgradeEligible /f
  86. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\TelemetryController" /f
  87. schtasks /Change /DISABLE /TN "Microsoft\Windows\SetupSQMTask"
  88. schtasks /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\BthSQM"
  89. schtasks /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
  90. schtasks /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
  91. schtasks /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\TelTask"
  92. schtasks /Change /DISABLE /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
  93. schtasks /Change /DISABLE /TN "Microsoft\Windows\Application Experience\AitAgent"
  94. schtasks /Change /DISABLE /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
  95. schtasks /Change /DISABLE /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater"
  96. schtasks /Change /DISABLE /TN "Microsoft\Windows\PerfTrack\BackgroundConfigSurveyor"
  97. schtasks /Delete /F /TN "Microsoft\Windows\SetupSQMTask"
  98. schtasks /Delete /F /TN "Microsoft\Windows\Customer Experience Improvement Program\BthSQM"
  99. schtasks /Delete /F /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator"
  100. schtasks /Delete /F /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask"
  101. schtasks /Delete /F /TN "Microsoft\Windows\Customer Experience Improvement Program\TelTask"
  102. schtasks /Delete /F /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip"
  103. schtasks /Delete /F /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"
  104. schtasks /Delete /F /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater"
  105. schtasks /Delete /F /TN "Microsoft\Windows\Application Experience\AitAgent"
  106. schtasks /Delete /F /TN "Microsoft\Windows\PerfTrack\BackgroundConfigSurveyor"
  107. echo.
  108. echo.
  109. echo Closing in 5 Seconds...
  110. timeout /t 5 >nul
  111. goto :eof
RAW Paste Data