Advertisement
FreeBooter

CEIP

Oct 19th, 2017
755
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.92 KB | None | 0 0
  1. :: Created by FreeBooter
  2. @Echo Off & Cls
  3.  
  4. Cd %Systemroot%\system32
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. REM  --> Check for permissions
  12. Reg query "HKU\S-1-5-19\Environment"
  13. REM --> If error flag set, we do not have admin.
  14. if %errorlevel% NEQ 0 (
  15. ECHO                 **************************************
  16. ECHO                  Running Admin shell... Please wait...
  17. ECHO                 **************************************
  18.  
  19.     goto UACPrompt
  20. ) else ( goto gotAdmin )
  21.  
  22. :UACPrompt
  23.     echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
  24.     set params = "%*:"=""
  25.     echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
  26.  
  27.     "%temp%\getadmin.vbs"
  28.     del "%temp%\getadmin.vbs"
  29.     exit /B
  30.  
  31.  
  32.  
  33.  
  34. :gotAdmin
  35.  
  36. Reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName | find /i "Windows 10" >Nul
  37. If Not Errorlevel 1 (
  38. Goto Win_10
  39. ) Else (
  40. Goto NotSupported
  41. )
  42.  
  43.  
  44. :Win_10
  45. Cls & Mode CON  LINES=11 COLS=70 & Color 0D & Title Created By FreeBooter
  46. Echo.
  47. Echo.      
  48. Echo     Type (D) To Disable Customer Experience Improvement Program  
  49. Echo.      
  50. Echo.        
  51.  
  52.  
  53. Set /p input= RESPONSE:
  54. If /i  Not %input%==D (Goto :Win_10) Else (Goto :_Disable)
  55.  
  56.  
  57.  
  58.  
  59. :_Disable
  60.  
  61. Reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d "0" /f > Nul
  62.  
  63.  
  64. Cls & Mode CON  LINES=5 COLS=48 & Color 0E
  65.  Echo.
  66.  Echo.
  67.  Echo                     Disabled
  68.  
  69. Ping -n 5  localhost > Nul
  70.  
  71. Goto :Reboot
  72.  
  73.  
  74.  
  75.  
  76. :NotSupported  
  77. Cls
  78. Echo Operating System is Not Supported.
  79. ping -n 10  localhost > Nul
  80. Exit
  81.  
  82.  
  83. :Reboot
  84. Cls & Mode CON  LINES=11 COLS=42 & Color 0E & Title FreeBooter
  85. Echo.
  86. Echo.
  87. Echo    THIS COMPUTER WILL REBOOT
  88. Echo.
  89. Echo.
  90. Echo    PLEASE SAVE ALL WORK IN PROGRESS
  91. Echo.
  92. Echo.
  93. Echo    PRESS 'ENTER' KEY TO RESTART COMPUTER
  94. Pause >Nul
  95.  
  96. Shutdown  -r  -t 0  -c "REBOOTING SYSTEM" 2>&1 > Nul
  97. Cls
  98. Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement