15 49.0138 8.38624 1 0 4000 1 https://vladtalkstech.com 300 1
theme-sticky-logo-alt

How to Disable IE Enhanced Security Using PowerShell

4 Comments

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

#Vlad Catrinescu  www.vladcatrinescu.com
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 🙂

Previous Post
How to Remove the “Confirmation” in SharePoint PowerShell Commands
Next Post
How to configure SharePoint Outgoing Email Settings Using PowerShell

4 Comments

  • October 31, 2015 at 11:04 am

    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”

    Reply
  • January 28, 2016 at 4:09 pm
    Shark

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

    Reply
  • February 11, 2016 at 1:53 pm
    Martin Diehl

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

    Reply

Leave a Reply