Skip to content

Instantly share code, notes, and snippets.

@hermesthecat
Forked from CHEF-KOCH/DisableSmartScreen.cmd
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save hermesthecat/5340997c8f25af01320a to your computer and use it in GitHub Desktop.

Select an option

Save hermesthecat/5340997c8f25af01320a to your computer and use it in GitHub Desktop.
@echo off
pushd "%~dp0"
cscript DisableSmartScreen.vbs
SET RQR=REG QUERY "HKLM\SOFTWARE\Microsoft\Internet Explorer" /v "Version"
%RQR% | findstr /I "\<10\>" >nul && %INL% reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PhishingFilter" /v EnabledV9 /t REG_DWORD /d "00000000" /f >nul
NET STOP "Windows Defender Service" > nul 2>&1
popd
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment