Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo Off & Cls
- REM --> Check for permissions
- Reg query "HKU\S-1-5-19\Environment"
- REM --> If error flag set, we do not have admin.
- if %errorlevel% NEQ 0 (
- ECHO **************************************
- ECHO Running Admin shell... Please wait...
- ECHO **************************************
- goto UACPrompt
- ) else ( goto gotAdmin )
- :UACPrompt
- echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
- set params = "%*:"=""
- echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
- "%temp%\getadmin.vbs"
- del "%temp%\getadmin.vbs"
- exit /B
- :gotAdmin
- Sc config DiagTrack start= disabled
- Sc config dmwappushservice start= disabled
- Sc stop DiagTrack
- Sc stop dmwappushservice
- Reg Add HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection /v AllowTelemetry /t REG_DWORD /d 0 /f
- REG Add HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener /v Start /t REG_DWORD /d 0 /f
- reg Add HKLM\System\ControlSet001\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener /v Start /t REG_DWORD /d 0 /f
- Cls & Mode CON LINES=11 COLS=42 & Color 0E & Title FreeBooter
- Echo.
- Echo.
- Echo THIS COMPUTER WILL REBOOT
- Echo.
- Echo.
- Echo PLEASE SAVE ALL WORK IN PROGRESS
- Echo.
- Echo.
- Echo PRESS 'ENTER' KEY TO RESTART COMPUTER
- Pause >Nul
- Shutdown -r -t 0 -c "REBOOTING SYSTEM" 2>&1 > Nul
- Cls
- Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement