Open in the explorer

Prevent Roaming Profile changes from propagating to the server

Empêcher la propagation des modifications de profils itinérants vers le serveur

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › User Profiles FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Profils utilisateur
Supported on
At least Windows Server 2003 operating systems or Windows XP Professional FR: Au minimum Windows Server 2003 ou Windows XP Professionnel
ADMX file
UserProfiles.admx
Internal name
UserProfiles/Readonlyuserprofile

Explanation

This policy setting determines if the changes a user makes to their roaming profile are merged with the server copy of their profile.

By default, when a user with a roaming profile logs on to a computer, the roaming profile is copied down to the local computer. If the user has logged on to the computer in the past, the roaming profile is merged with the local profile. Similarly, when the user logs off the computer, the local copy of their profile, including any changes, is merged with the server copy of the profile.

Using this policy setting, you can prevent changes made to a roaming profile on a particular computer from being persisted.

If you enable this policy setting, changes a user makes to their roaming profile aren't merged with the server (roaming) copy when the user logs off.

If you disable or not configure this policy setting, the default behavior occurs, as indicated above.

Note: This policy setting only affects roaming profile users.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine si les modifications qu’un utilisateur apporte à son profil itinérant sont fusionnées avec la copie de son profil sur le serveur.

Par défaut, lorsqu’un utilisateur à profil itinérant ouvre une session sur un ordinateur, son profil itinérant est copié sur l’ordinateur local. S’il a déjà ouvert une session sur cet ordinateur, le profil itinérant est fusionné avec le profil local. De même, lorsque l’utilisateur ferme la session sur cet ordinateur, la copie locale de son profil, y compris toutes les modifications qui y ont été apportées, est fusionnée avec la copie de son profil sur le serveur.

Avec ce paramètre de stratégie, vous pouvez éviter de conserver les modifications apportées à un profil itinérant sur un ordinateur particulier.

Si vous activez ce paramètre de stratégie, les modifications apportées par un utilisateur à son profil itinérant ne sont pas fusionnées avec la copie de son profil (itinérant) sur le serveur lorsqu’il ferme sa session.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, le comportement par défaut indiqué ci-dessus se produit.

Remarque : ce paramètre de stratégie agit seulement sur les utilisateurs à profil itinérant.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System
Value name
ReadOnlyProfile
StateValue written
Enablednot defined in the ADMX
Disablednot 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: UserProfiles/Readonlyuserprofile
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
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 'ReadOnlyProfile' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: UserProfiles/Readonlyuserprofile
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
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 'ReadOnlyProfile' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": UserProfiles/Readonlyuserprofile
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'ReadOnlyProfile' -ErrorAction SilentlyContinue

Availability