How to Disable IE Enhanced Security Using PowerShell

How to Disable IE Enhanced Security Using PowerShell

Here is a little script on how to Disable IE Enhanced Security Using PowerShell

#Vlad Catrinescu
Write-Host -ForegroundColor White ” – Disabling IE Enhanced Security…”
Set-ItemProperty -Path “HKLM:SOFTWAREMicrosoftActive SetupInstalled Components{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}” -Name isinstalled -Value 0
Set-ItemProperty -Path “HKLM:SOFTWAREMicrosoftActive SetupInstalled Components{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}” -Name isinstalled -Value 0
Rundll32 iesetup.dll, IEHardenLMSettings,1,True
Rundll32 iesetup.dll, IEHardenUser,1,True
Rundll32 iesetup.dll, IEHardenAdmin,1,True
If (Test-Path “HKCU:SOFTWAREMicrosoftActive SetupInstalled Components{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}”) 
Remove-Item -Path “HKCU:SOFTWAREMicrosoftActive SetupInstalled Components{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}”
If (Test-Path “HKCU:SOFTWAREMicrosoftActive SetupInstalled Components{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}”)
Remove-Item -Path “HKCU:SOFTWAREMicrosoftActive SetupInstalled Components{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}”

#This doesn’t always exist
Remove-ItemProperty “HKCU:SOFTWAREMicrosoftInternet ExplorerMain” “First Home Page” -ErrorAction SilentlyContinue

Say thanks if it helped 🙂

5/5 (1)

Please rate this


This works! You have the only solution I can find for Server 2012! Others are missing the “Rundll32 iesetup.dll” steps.
FYI – you appear to be removing the slashes. i.e. “HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\” has become “HKLM:SOFTWAREMicrosoftActive SetupInstalled Components”

Is there a way to execute this script successfully without admin privileges?

Worked like a charm. It’s the rundll32 bit that does the trick i guess…..

Leave a Reply