Disable IE Enhanced Security in Windows Server 2008 R2 with PowerShell

Save the code below into a PowerShell file and run it in order to disable IE Enhanced Security in Windows Server 2008 R2:

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

To do this in the GUI, open Server Manager, then select Server Manager in the left pane when it loads, then in the right pane click on Configure IE ESC per the below:


Check Off according to your requirements, I disabled IE Enhanced Security for both Users and Administrators per the below:


Please note that disabling IE Enhanced Security makes your server less secure and should NOT be disables on any production servers – I disable it only on test servers.

If Internet Explorer is open when you run the code above, restart Internet Explorer for the changes to become active.

This procedure detailed above also works in Windows Server 2012.