Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 927 Bytes
##################################################################################################
<#
.SYNOPSIS
Script that set a regkey to restrict the use of Internet Explorer
.NOTES
FileName: IE EnterpriseMode RestrictIE.ps1
Author: Per Larsen
Created: 14-02-2019
Product: Internet Explorer
Version: 1.0
#>
###################################################################################################
$registryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode"
#Send all sites not included in the Enterprise Mode Site List to Microsoft Edge.
$Name = "RestrictIE"
$value = "1"
IF((Test-Path -LiteralPath $registryPath) -ne $true)
{ New-Item $registryPath -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath $registryPath -Name $Name -Value $value -PropertyType DWord -Force -ea SilentlyContinue;
You can’t perform that action at this time.