Advertisement
FreeBooter

DenyTelemetry

Oct 24th, 2017
1,135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.48 KB | None | 0 0
  1. @Echo Off & Cls
  2.  
  3.  
  4. REM  --> Check for permissions
  5. Reg query "HKU\S-1-5-19\Environment"
  6. REM --> If error flag set, we do not have admin.
  7. if %errorlevel% NEQ 0 (
  8. ECHO                 **************************************
  9. ECHO                  Running Admin shell... Please wait...
  10. ECHO                 **************************************
  11.  
  12.     goto UACPrompt
  13. ) else ( goto gotAdmin )
  14.  
  15. :UACPrompt
  16.     echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
  17.     set params = "%*:"=""
  18.     echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
  19.  
  20.     "%temp%\getadmin.vbs"
  21.     del "%temp%\getadmin.vbs"
  22.     exit /B
  23.  
  24.  
  25. :gotAdmin
  26.  
  27. Sc config DiagTrack start= disabled
  28.  
  29. Sc config dmwappushservice start= disabled
  30.  
  31. Sc stop DiagTrack
  32.  
  33. Sc stop dmwappushservice
  34.  
  35. Reg Add HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection /v AllowTelemetry /t REG_DWORD /d 0 /f
  36.  
  37. REG Add HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener /v Start /t REG_DWORD /d 0 /f
  38.  
  39. reg Add HKLM\System\ControlSet001\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener /v Start /t REG_DWORD /d 0 /f
  40.  
  41.  
  42.  
  43.  
  44. Cls & Mode CON  LINES=11 COLS=42 & Color 0E & Title FreeBooter
  45. Echo.
  46. Echo.
  47. Echo    THIS COMPUTER WILL REBOOT
  48. Echo.
  49. Echo.
  50. Echo    PLEASE SAVE ALL WORK IN PROGRESS
  51. Echo.
  52. Echo.
  53. Echo    PRESS 'ENTER' KEY TO RESTART COMPUTER
  54. Pause >Nul
  55.  
  56. Shutdown  -r  -t 0  -c "REBOOTING SYSTEM" 2>&1 > Nul
  57. Cls
  58. Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement