Internet Zone Template
Verified with Windows 11 25H2 — updated on July 30, 2026
Supported on: At least Internet Explorer 6.0 in Windows XP with Service Pack 2 or Windows Server 2003 with Service Pack 1
Path in the GPO console
Computer Configuration\Administrative Templates\Windows Components\Internet Explorer\Internet Control Panel\Security Page User Configuration\Administrative Templates\Windows Components\Internet Explorer\Internet Control Panel\Security Page Description
This template policy setting allows you to configure policy settings in this zone consistent with a selected security level, for example, Low, Medium Low, Medium, or High. If you enable this template policy setting and select a security level, all values for individual settings in the zone will be overwritten by the standard template defaults. If you disable this template policy setting, no security level is configured. If you do not configure this template policy setting, no security level is configured. Note. Local Machine Zone Lockdown Security and Network Protocol Lockdown operate by comparing the settings in the active URL's zone against those in the Locked-Down equivalent zone. If you select a security level for any zone (including selecting no security), the same change should be made to the Locked-Down equivalent. Note. It is recommended to configure template policy settings in one Group Policy object (GPO) and configure any related individual policy settings in a separate GPO. You can then use Group Policy management features (for example, precedence, inheritance, or enforce) to apply individual settings to specific targets.
Registry
Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Template Policies Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Template Policies Value name: InternetZoneTemplate
Enabled: InternetZoneTemplate = 1
Disabled: InternetZoneTemplate = 0
This policy sets several registry values:
1001 3 1001 = (not defined) 1001 = (deleted) 1004 3 1004 = (not defined) 1004 = (deleted) 1200 3 1200 = (not defined) 1200 = (deleted) 1201 3 1201 = (not defined) 1201 = (deleted) 1206 3 1206 = (not defined) 1206 = (deleted) 1207 3 1207 = (not defined) 1207 = (deleted) 1208 3 1208 = (not defined) 1208 = (deleted) 1209 3 1209 = (not defined) 1209 = (deleted) 120a 3 120a = (not defined) 120a = (deleted) 120b 3 120b = (not defined) 120b = (deleted) 120c 3 120c = (not defined) 120c = (deleted) 1400 3 1400 = (not defined) 1400 = (deleted) 1402 3 1402 = (not defined) 1402 = (deleted) 1405 3 1405 = (not defined) 1405 = (deleted) 1406 3 1406 = (not defined) 1406 = (deleted) 1407 3 1407 = (not defined) 1407 = (deleted) 1409 3 1409 = (not defined) 1409 = (deleted) 1601 3 1601 = (not defined) 1601 = (deleted) 1604 3 1604 = (not defined) 1604 = (deleted) 1605 3 1605 = (not defined) 1605 = (deleted) 1606 3 1606 = (not defined) 1606 = (deleted) 1607 3 1607 = (not defined) 1607 = (deleted) 1608 3 1608 = (not defined) 1608 = (deleted) 1609 3 1609 = (not defined) 1609 = (deleted) 160A 3 160A = (not defined) 160A = (deleted) 1800 3 1800 = (not defined) 1800 = (deleted) 1802 3 1802 = (not defined) 1802 = (deleted) 1803 3 1803 = (not defined) 1803 = (deleted) 1804 3 1804 = (not defined) 1804 = (deleted) 1807 3 1807 = (not defined) 1807 = (deleted) 1808 3 1808 = (not defined) 1808 = (deleted) 1809 3 1809 = (not defined) 1809 = (deleted) 180a 3 180a = (not defined) 180a = (deleted) 180b 3 180b = (not defined) 180b = (deleted) 1a00 3 1a00 = (not defined) 1a00 = (deleted) 1a02 3 1a02 = (not defined) 1a02 = (deleted) 1a03 3 1a03 = (not defined) 1a03 = (deleted) 1a04 3 1a04 = (not defined) 1a04 = (deleted) 1a05 3 1a05 = (not defined) 1a05 = (deleted) 1a06 3 1a06 = (not defined) 1a06 = (deleted) 1c00 3 1c00 = (not defined) 1c00 = (deleted) 1e05 3 1e05 = (not defined) 1e05 = (deleted) 2000 3 2000 = (not defined) 2000 = (deleted) 2001 3 2001 = (not defined) 2001 = (deleted) 2004 3 2004 = (not defined) 2004 = (deleted) 2005 3 2005 = (not defined) 2005 = (deleted) 2100 3 2100 = (not defined) 2100 = (deleted) 2101 3 2101 = (not defined) 2101 = (deleted) 2102 3 2102 = (not defined) 2102 = (deleted) 2103 3 2103 = (not defined) 2103 = (deleted) 2104 3 2104 = (not defined) 2104 = (deleted) 2105 3 2105 = (not defined) 2105 = (deleted) 2106 3 2106 = (not defined) 2106 = (deleted) 2200 3 2200 = (not defined) 2200 = (deleted) 2201 3 2201 = (not defined) 2201 = (deleted) 2300 3 2300 = (not defined) 2300 = (deleted) 2301 3 2301 = (not defined) 2301 = (deleted) 2400 3 2400 = (not defined) 2400 = (deleted) 2401 3 2401 = (not defined) 2401 = (deleted) 2402 3 2402 = (not defined) 2402 = (deleted) 2500 3 2500 = (not defined) 2500 = (deleted) 2600 3 2600 = (not defined) 2600 = (deleted) 2700 3 2700 = (not defined) 2700 = (deleted) MDM / Intune (CSP)
./Device/Vendor/MSFT/Policy/Config/InternetExplorer/AllowInternetZoneTemplate ./User/Vendor/MSFT/Policy/Config/InternetExplorer/AllowInternetZoneTemplate Microsoft Learn documentation Mapping data: Microsoft Learn (CC BY 4.0)
Export Builder
BETAConfigure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.
These exports write the registry — this is not a managed GPO. ⓘ
Applying both scopes creates an ambiguous configuration (computer takes precedence over user). Only do this intentionally.
.reg file
Windows Registry Editor Version 5.00
; Exported from gporais.com
; Policy: Internet Zone Template
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: At least Internet Explorer 6.0 in Windows XP with Service Pack 2 or Windows Server 2003 with Service Pack 1
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Template Policies]
"InternetZoneTemplate"=dword:00000001
"Internet"=dword:00000003
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
; "1001" = (not defined)
; "1004" = (not defined)
; "1200" = (not defined)
; "1201" = (not defined)
; "1206" = (not defined)
; "1207" = (not defined)
; "1208" = (not defined)
; "1209" = (not defined)
; "120a" = (not defined)
; "120b" = (not defined)
; "120c" = (not defined)
; "1400" = (not defined)
; "1402" = (not defined)
; "1405" = (not defined)
; "1406" = (not defined)
; "1407" = (not defined)
; "1409" = (not defined)
; "1601" = (not defined)
; "1604" = (not defined)
; "1605" = (not defined)
; "1606" = (not defined)
; "1607" = (not defined)
; "1608" = (not defined)
; "1609" = (not defined)
; "160A" = (not defined)
; "1800" = (not defined)
; "1802" = (not defined)
; "1803" = (not defined)
; "1804" = (not defined)
; "1807" = (not defined)
; "1808" = (not defined)
; "1809" = (not defined)
; "180a" = (not defined)
; "180b" = (not defined)
; "1a00" = (not defined)
; "1a02" = (not defined)
; "1a03" = (not defined)
; "1a04" = (not defined)
; "1a05" = (not defined)
; "1a06" = (not defined)
; "1c00" = (not defined)
; "1e05" = (not defined)
; "2000" = (not defined)
; "2001" = (not defined)
; "2004" = (not defined)
; "2005" = (not defined)
; "2100" = (not defined)
; "2101" = (not defined)
; "2102" = (not defined)
; "2103" = (not defined)
; "2104" = (not defined)
; "2105" = (not defined)
; "2106" = (not defined)
; "2200" = (not defined)
; "2201" = (not defined)
; "2300" = (not defined)
; "2301" = (not defined)
; "2400" = (not defined)
; "2401" = (not defined)
; "2402" = (not defined)
; "2500" = (not defined)
; "2600" = (not defined)
; "2700" = (not defined) More formats (PowerShell, Intune, SCCM)
PowerShell
# Exported from gporais.com
# Policy: Internet Zone Template
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: At least Internet Explorer 6.0 in Windows XP with Service Pack 2 or Windows Server 2003 with Service Pack 1
$path = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Template Policies'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'InternetZoneTemplate' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'Internet' -Value 3 -Type DWord
$path = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3'
# 1001 = (not defined)
# 1004 = (not defined)
# 1200 = (not defined)
# 1201 = (not defined)
# 1206 = (not defined)
# 1207 = (not defined)
# 1208 = (not defined)
# 1209 = (not defined)
# 120a = (not defined)
# 120b = (not defined)
# 120c = (not defined)
# 1400 = (not defined)
# 1402 = (not defined)
# 1405 = (not defined)
# 1406 = (not defined)
# 1407 = (not defined)
# 1409 = (not defined)
# 1601 = (not defined)
# 1604 = (not defined)
# 1605 = (not defined)
# 1606 = (not defined)
# 1607 = (not defined)
# 1608 = (not defined)
# 1609 = (not defined)
# 160A = (not defined)
# 1800 = (not defined)
# 1802 = (not defined)
# 1803 = (not defined)
# 1804 = (not defined)
# 1807 = (not defined)
# 1808 = (not defined)
# 1809 = (not defined)
# 180a = (not defined)
# 180b = (not defined)
# 1a00 = (not defined)
# 1a02 = (not defined)
# 1a03 = (not defined)
# 1a04 = (not defined)
# 1a05 = (not defined)
# 1a06 = (not defined)
# 1c00 = (not defined)
# 1e05 = (not defined)
# 2000 = (not defined)
# 2001 = (not defined)
# 2004 = (not defined)
# 2005 = (not defined)
# 2100 = (not defined)
# 2101 = (not defined)
# 2102 = (not defined)
# 2103 = (not defined)
# 2104 = (not defined)
# 2105 = (not defined)
# 2106 = (not defined)
# 2200 = (not defined)
# 2201 = (not defined)
# 2300 = (not defined)
# 2301 = (not defined)
# 2400 = (not defined)
# 2401 = (not defined)
# 2402 = (not defined)
# 2500 = (not defined)
# 2600 = (not defined)
# 2700 = (not defined) Intune XML
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/InternetExplorer/AllowInternetZoneTemplate
Data type: String
Value:
<enabled/>
<data id="IZ_PartnameInternetZoneTemplate" value="3"/> Intune Remediation
# === Detection script ===
# Exported from gporais.com
# Policy: Internet Zone Template
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: At least Internet Explorer 6.0 in Windows XP with Service Pack 2 or Windows Server 2003 with Service Pack 1
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1001: 1001= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1004: 1004= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1200: 1200= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1201: 1201= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1206: 1206= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1207: 1207= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1208: 1208= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1209: 1209= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\120a: 120a= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\120b: 120b= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\120c: 120c= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1400: 1400= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1402: 1402= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1405: 1405= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1406: 1406= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1407: 1407= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1409: 1409= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1601: 1601= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1604: 1604= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1605: 1605= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1606: 1606= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1607: 1607= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1608: 1608= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1609: 1609= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\160A: 160A= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1800: 1800= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1802: 1802= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1803: 1803= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1804: 1804= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1807: 1807= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1808: 1808= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1809: 1809= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\180a: 180a= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\180b: 180b= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a00: 1a00= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a02: 1a02= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a03: 1a03= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a04: 1a04= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a05: 1a05= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a06: 1a06= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1c00: 1c00= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1e05: 1e05= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2000: 2000= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2001: 2001= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2004: 2004= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2005: 2005= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2100: 2100= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2101: 2101= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2102: 2102= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2103: 2103= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2104: 2104= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2105: 2105= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2106: 2106= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2200: 2200= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2201: 2201= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2300: 2300= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2301: 2301= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2400: 2400= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2401: 2401= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2402: 2402= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2500: 2500= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2600: 2600= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2700: 2700= is not representable as a registry value.
$checks = @(
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Template Policies' -Name 'InternetZoneTemplate' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Template Policies' -Name 'Internet' -Expected 3 -Kind DWord)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Internet Zone Template
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: At least Internet Explorer 6.0 in Windows XP with Service Pack 2 or Windows Server 2003 with Service Pack 1
$path = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Template Policies'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'InternetZoneTemplate' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'Internet' -Value 3 -Type DWord
$path = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3'
# 1001 = (not defined)
# 1004 = (not defined)
# 1200 = (not defined)
# 1201 = (not defined)
# 1206 = (not defined)
# 1207 = (not defined)
# 1208 = (not defined)
# 1209 = (not defined)
# 120a = (not defined)
# 120b = (not defined)
# 120c = (not defined)
# 1400 = (not defined)
# 1402 = (not defined)
# 1405 = (not defined)
# 1406 = (not defined)
# 1407 = (not defined)
# 1409 = (not defined)
# 1601 = (not defined)
# 1604 = (not defined)
# 1605 = (not defined)
# 1606 = (not defined)
# 1607 = (not defined)
# 1608 = (not defined)
# 1609 = (not defined)
# 160A = (not defined)
# 1800 = (not defined)
# 1802 = (not defined)
# 1803 = (not defined)
# 1804 = (not defined)
# 1807 = (not defined)
# 1808 = (not defined)
# 1809 = (not defined)
# 180a = (not defined)
# 180b = (not defined)
# 1a00 = (not defined)
# 1a02 = (not defined)
# 1a03 = (not defined)
# 1a04 = (not defined)
# 1a05 = (not defined)
# 1a06 = (not defined)
# 1c00 = (not defined)
# 1e05 = (not defined)
# 2000 = (not defined)
# 2001 = (not defined)
# 2004 = (not defined)
# 2005 = (not defined)
# 2100 = (not defined)
# 2101 = (not defined)
# 2102 = (not defined)
# 2103 = (not defined)
# 2104 = (not defined)
# 2105 = (not defined)
# 2106 = (not defined)
# 2200 = (not defined)
# 2201 = (not defined)
# 2300 = (not defined)
# 2301 = (not defined)
# 2400 = (not defined)
# 2401 = (not defined)
# 2402 = (not defined)
# 2500 = (not defined)
# 2600 = (not defined)
# 2700 = (not defined) SCCM scripts
# Exported from gporais.com
# Policy: Internet Zone Template
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: At least Internet Explorer 6.0 in Windows XP with Service Pack 2 or Windows Server 2003 with Service Pack 1
# SCCM Configuration Item guidance:
# Create a Configuration Item of type "Setting: Script".
# Discovery script: use the Detection script below.
# Remediation script: use the Remediation script below.
# Compliance rule: the Discovery script output equals 'Compliant'.
# === Detection script ===
# Exported from gporais.com
# Policy: Internet Zone Template
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: At least Internet Explorer 6.0 in Windows XP with Service Pack 2 or Windows Server 2003 with Service Pack 1
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1001: 1001= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1004: 1004= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1200: 1200= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1201: 1201= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1206: 1206= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1207: 1207= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1208: 1208= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1209: 1209= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\120a: 120a= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\120b: 120b= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\120c: 120c= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1400: 1400= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1402: 1402= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1405: 1405= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1406: 1406= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1407: 1407= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1409: 1409= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1601: 1601= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1604: 1604= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1605: 1605= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1606: 1606= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1607: 1607= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1608: 1608= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1609: 1609= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\160A: 160A= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1800: 1800= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1802: 1802= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1803: 1803= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1804: 1804= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1807: 1807= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1808: 1808= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1809: 1809= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\180a: 180a= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\180b: 180b= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a00: 1a00= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a02: 1a02= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a03: 1a03= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a04: 1a04= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a05: 1a05= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1a06: 1a06= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1c00: 1c00= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1e05: 1e05= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2000: 2000= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2001: 2001= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2004: 2004= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2005: 2005= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2100: 2100= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2101: 2101= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2102: 2102= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2103: 2103= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2104: 2104= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2105: 2105= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2106: 2106= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2200: 2200= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2201: 2201= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2300: 2300= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2301: 2301= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2400: 2400= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2401: 2401= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2402: 2402= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2500: 2500= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2600: 2600= is not representable as a registry value.
# HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2700: 2700= is not representable as a registry value.
$checks = @(
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Template Policies' -Name 'InternetZoneTemplate' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Template Policies' -Name 'Internet' -Expected 3 -Kind DWord)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Internet Zone Template
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: At least Internet Explorer 6.0 in Windows XP with Service Pack 2 or Windows Server 2003 with Service Pack 1
$path = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Template Policies'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'InternetZoneTemplate' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'Internet' -Value 3 -Type DWord
$path = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3'
# 1001 = (not defined)
# 1004 = (not defined)
# 1200 = (not defined)
# 1201 = (not defined)
# 1206 = (not defined)
# 1207 = (not defined)
# 1208 = (not defined)
# 1209 = (not defined)
# 120a = (not defined)
# 120b = (not defined)
# 120c = (not defined)
# 1400 = (not defined)
# 1402 = (not defined)
# 1405 = (not defined)
# 1406 = (not defined)
# 1407 = (not defined)
# 1409 = (not defined)
# 1601 = (not defined)
# 1604 = (not defined)
# 1605 = (not defined)
# 1606 = (not defined)
# 1607 = (not defined)
# 1608 = (not defined)
# 1609 = (not defined)
# 160A = (not defined)
# 1800 = (not defined)
# 1802 = (not defined)
# 1803 = (not defined)
# 1804 = (not defined)
# 1807 = (not defined)
# 1808 = (not defined)
# 1809 = (not defined)
# 180a = (not defined)
# 180b = (not defined)
# 1a00 = (not defined)
# 1a02 = (not defined)
# 1a03 = (not defined)
# 1a04 = (not defined)
# 1a05 = (not defined)
# 1a06 = (not defined)
# 1c00 = (not defined)
# 1e05 = (not defined)
# 2000 = (not defined)
# 2001 = (not defined)
# 2004 = (not defined)
# 2005 = (not defined)
# 2100 = (not defined)
# 2101 = (not defined)
# 2102 = (not defined)
# 2103 = (not defined)
# 2104 = (not defined)
# 2105 = (not defined)
# 2106 = (not defined)
# 2200 = (not defined)
# 2201 = (not defined)
# 2300 = (not defined)
# 2301 = (not defined)
# 2400 = (not defined)
# 2401 = (not defined)
# 2402 = (not defined)
# 2500 = (not defined)
# 2600 = (not defined)
# 2700 = (not defined) Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.