Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Created by FreeBooter
- @Echo Off
- 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
- :_Start
- Cls & Mode CON LINES=11 COLS=80 & Color 0D & Title Created By FreeBooter
- Echo.
- Echo.
- Echo Type (D) to Disable Blocking of Downloaded Files in Windows 10
- Echo.
- Echo Type (E) to Enable Blocking of Downloaded Files in Windows 10
- Echo.
- Echo.
- Set /p input= RESPONSE:
- If /i Not %input%==D (Goto :_Ex) Else (Goto :_Disable)
- :_Ex
- If /i Not %input%==E (Goto :_Start) Else (Goto :_Enable)
- :_Disable
- Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d "1" /f > Nul
- Cls & Mode CON LINES=5 COLS=48 & Color 0E
- Echo.
- Echo.
- Echo Disabled
- Ping -n 5 localhost > Nul
- Exit
- :_Enable
- Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d "0" /f > Nul
- Cls & Mode CON LINES=5 COLS=48 & Color 0E
- Echo.
- Echo.
- Echo Enabled
- Ping -n 5 localhost > Nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement