Skip to content

Instantly share code, notes, and snippets.

@danielscholl
Created March 20, 2017 14:19
Show Gist options
  • Select an option

  • Save danielscholl/bbc18540418e17c39a4292ffcdcc95f0 to your computer and use it in GitHub Desktop.

Select an option

Save danielscholl/bbc18540418e17c39a4292ffcdcc95f0 to your computer and use it in GitHub Desktop.

Revisions

  1. danielscholl created this gist Mar 20, 2017.
    9 changes: 9 additions & 0 deletions ieESC_disable
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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