Security Zones: Use only machine settings
Zones de sécurité : utiliser uniquement les paramètres ordinateur
Explanation
Applies security zone information to all users of the same computer. A security zone is a group of Web sites with the same security level.
If you enable this policy, changes that the user makes to a security zone will apply to all users of that computer.
If you disable this policy or do not configure it, users of the same computer can establish their own security zone settings.
This policy is intended to ensure that security zone settings apply uniformly to the same computer and do not vary from user to user.
Also, see the "Security zones: Do not allow users to change policies" policy.
Applique l’information sur les zones de sécurité à tous les utilisateurs du même ordinateur. Une zone de sécurité est un groupe de sites Web partageant le même niveau de sécurité.
Si vous activez ce paramètre de stratégie, les modifications apportées par l’utilisateur à une zone de sécurité s’appliquent à tous les utilisateurs de cet ordinateur.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs du même ordinateur peuvent définir leurs propres paramètres de zones de sécurité.
Ce paramètre de stratégie est conçu afin de s’assurer que les paramètres des zones de sécurité s’appliquent uniformément à un même ordinateur et ne varient pas selon l’utilisateur.
Consultez également la stratégie « Zones de sécurité : ne pas autoriser les utilisateurs à modifier les stratégies ».
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings- Value name
Security_HKLM_only
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: inetres/Security_HKLM_only
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'Security_HKLM_only' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: inetres/Security_HKLM_only
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'Security_HKLM_only' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": inetres/Security_HKLM_only
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
Remove-ItemProperty -Path $k -Name 'Security_HKLM_only' -ErrorAction SilentlyContinue