How to enable or disable Internet Explorer enhanced protected mode in Windows 8 (PowerShell)

Introduction

This PowerShell script sample shows how to enable or disable Internet Explorer enhanced protected mode in Windows 8.

Scenarios

Sometimes users want to disable Internet Explorer enhanced protected mode in Windows 8 because of compatible problems. This script is to achieve that.

Script

Step 1: Right click the script and select Run with PowerShell.
 

Step 2: Then it will show a confirming message, press Enter.

Note After script executed, please restart Internet Explorer to take it effect.

Here are some code snippets for your references.

PowerShell
Edit|Remove
$message = "Enhanced Protected Mode is the default setting, do you want to disable it?" 
$result  = GetChoice $message 
If($result -eq 0{ 
    New-ItemProperty -Name "Isolation" -Path $Keypath -Value "PMIL" -PropertyType String | Out-Null 
    Write-Host "Disable Enhanced Protected Mode successfully, please restart Internet Explorer to take it effect! " 
    sleep 5}

Prerequisite 

Windows 8 or later version