Advertisement
Ibra86

W10Tel

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