Configure user Group Policy loopback processing mode
Configurer le mode de traitement par bouclage de la stratégie de groupe utilisateur
Explanation
This policy setting directs the system to apply the set of Group Policy objects for the computer to any user who logs on to a computer affected by this setting. It is intended for special-use computers, such as those in public places, laboratories, and classrooms, where you must modify the user setting based on the computer that is being used.
By default, the user's Group Policy Objects determine which user settings apply. If this setting is enabled, then, when a user logs on to this computer, the computer's Group Policy Objects determine which set of Group Policy Objects applies.
If you enable this setting, you can select one of the following modes from the Mode box:
"Replace" indicates that the user settings defined in the computer's Group Policy Objects replace the user settings normally applied to the user.
"Merge" indicates that the user settings defined in the computer's Group Policy Objects and the user settings normally applied to the user are combined. If the settings conflict, the user settings in the computer's Group Policy Objects take precedence over the user's normal settings.
If you disable this setting or do not configure it, the user's Group Policy Objects determines which user settings apply.
Note: This setting is effective only when both the computer account and the user account are in at least Windows 2000 domains.
Ce paramètre de stratégie demande au système d’appliquer le jeu d’objets de stratégie de groupe à l’ordinateur pour tout utilisateur qui ouvre une session sur un ordinateur affecté par ce paramètre. Il est conçu pour des ordinateurs à usage particulier, comme ceux dans les lieux publics, les laboratoires et les écoles, où vous devez modifier les paramètres utilisateur en fonction de l’ordinateur utilisé.
Par défaut, les objets de stratégie de groupe de l’utilisateur déterminent les paramètres utilisateur qui doivent être appliqués. Si vous activez ce paramètre de stratégie, lorsqu’un utilisateur ouvre une session sur cet ordinateur, les objets de stratégie de groupe de l’ordinateur déterminent le jeu d’objets de stratégie de groupe qui s’applique.
Si vous activez ce paramètre, vous pouvez sélectionner l’un des modes suivants dans la zone « Mode » :
« Remplacer » indique que les paramètres utilisateur définis dans les objets de stratégie de groupe de l’ordinateur remplacent les paramètres utilisateur normalement appliqués à l’utilisateur.
« Fusionner » indique que les paramètres utilisateur définis dans les objets de stratégie de groupe de l’ordinateur et les paramètres utilisateur normalement appliqués à l’utilisateur se combinent. Si les paramètres entrent en conflit, les paramètres utilisateur dans les objets de stratégie de groupe de l’ordinateur prévalent sur les paramètres normaux de l’utilisateur.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les objets de stratégie de groupe de l’utilisateur déterminent les paramètres utilisateur qui s’appliquent.
Remarque : ce paramètre ne s’applique que si le compte d’ordinateur et le compte d’utilisateur font partie au minimum de domaines Windows 2000.
Use cases
Turns on loopback processing: user settings come from the GPOs linked to the computer, whichever user logs on to it; it is used for kiosks, training rooms, Remote Desktop servers and public machines, where settings must depend on the machine. Two modes: Replace, where only the user settings of the computer’s GPOs apply, and Merge, where they are added to the user’s and win on conflict.
The classic trap: the setting goes in a GPO linked to the computers’ OU, and that GPO’s user configuration must be enabled. In Merge mode, GPOs linked high in the tree can be processed twice, which lengthens logon and can run a script twice.
Microsoft sources: Circle Back to Loopback · Group Policy processing
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
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: GroupPolicy/UserPolicyMode
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Mode
# Possible options:
# Merge = 1
# Replace = 2
Set-ItemProperty -Path $k -Name 'UserPolicyMode' -Value 2 -Type DWordDisable
# Disable: GroupPolicy/UserPolicyMode
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": GroupPolicy/UserPolicyMode
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'UserPolicyMode' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Mode:Mode :UserPolicyModeOp | Drop-down listenum | UserPolicyMode | REG_DWORD | Default choice (UI): #1
|