Skip to content

Instantly share code, notes, and snippets.

@Warrenn
Created June 1, 2020 10:44
Show Gist options
  • Save Warrenn/da781a8b7a8d244f93499e073eb4c7c8 to your computer and use it in GitHub Desktop.
Save Warrenn/da781a8b7a8d244f93499e073eb4c7c8 to your computer and use it in GitHub Desktop.
function Disable-IEESC
{
$AdminKey = “HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}”
Set-ItemProperty -Path $AdminKey -Name “IsInstalled” -Value 0
$UserKey = “HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}”
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