PowerShell: Disable IE Enhanced Security Configuration

Have you ever tried to get on the Internet on a Windows Server to download apps or access any web portal to configure an application and the IE ESC gets in the way?

Yup, I think we all have been there. Here’s how to disable those pesky IE ESC settings using 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