Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo Off
- Color 1A
- Cd %SystemRoot%\system32
- 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
- Mode CON LINES=5 COLS=50 & Color 0E
- Echo PLEASE WAIT...
- ::Creating System Restore point
- Wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "Restore Point", 100, 12
- Cls & Mode CON LINES=11 COLS=100 & Color 0D & Title Created By FreeBooter
- Echo.
- Echo.
- Echo.
- Echo.
- Echo Do You Want To Prevent Sending Infection Reports When Using Malicious Software Removal Tool (Y/N)?
- Echo.
- Echo.
- Echo.
- Set /p input= RESPONSE:
- If /i Not %input%==Y (Goto :_Ex) Else (Goto :_Start)
- :_Ex
- If /i Not %input%==N (Goto :EOF) Else (Goto :_RegRestore)
- :_Start
- Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d "1" /f > Nul
- Cls & Mode CON LINES=11 COLS=100 & Color 0D & Title Created By FreeBooter
- Echo.
- Echo.
- Echo.
- Echo.
- Echo Malicious Software Removal Tool will not report infection information to Microsoft
- Echo.
- Echo.
- Echo.
- Ping -n 8 localhost >Nul
- Exit
- :_RegRestore
- Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /f > Nul
- Cls & Mode CON LINES=11 COLS=100 & Color 0D & Title Created By FreeBooter
- Echo.
- Echo.
- Echo.
- Echo.
- Echo Malicious Software Removal Tool will report infection information to Microsoft
- Echo.
- Echo.
- Echo.
- Ping -n 8 localhost >nul
- Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement