Skip to content

Instantly share code, notes, and snippets.

@yonixw
Forked from danielscholl/ieESC_disable
Created June 5, 2019 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yonixw/6d5c39c8abc2503a0155814488cd1feb to your computer and use it in GitHub Desktop.
Save yonixw/6d5c39c8abc2503a0155814488cd1feb to your computer and use it in GitHub Desktop.
Disable IE Enhance Security PowerShell
function Disable-ieESC {
$AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}"
$UserKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}"
Set-ItemProperty -Path $AdminKey -Name "IsInstalled" -Value 0
Set-ItemProperty -Path $UserKey -Name "IsInstalled" -Value 0
Stop-Process -Name Explorer
Write-Host "IE Enhanced Security Configuration (ESC) has been disabled." -ForegroundColor Green
}
Disable-ieESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment