Open in the explorer

Only allow local user profiles

N’autoriser que les profils utilisateur locaux

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/LocalProfile

Explanation

This setting determines if roaming user profiles are available on a particular computer. By default, when roaming profile users log on to a computer, their roaming profile is copied down to the local computer. If they have already logged on to this computer in the past, the roaming profile is merged with the local profile. Similarly, when the user logs off this computer, the local copy of their profile, including any changes they have made, is merged with the server copy of their profile.

Using the setting, you can prevent users configured to use roaming profiles from receiving their profile on a specific computer.

If you enable this setting, the following occurs on the affected computer: At first logon, the user receives a new local profile, rather than the roaming profile. At logoff, changes are saved to the local profile. All subsequent logons use the local profile.

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

If you enable both the "Prevent Roaming Profile changes from propagating to the server" setting and the "Only allow local user profiles" setting, roaming profiles are disabled.

Note: This setting only affects roaming profile users.

French text from Windows 11 26H2

Ce paramètre détermine si les profils utilisateur itinérants sont disponibles sur un ordinateur particulier. Par défaut, lorsque les utilisateurs à profil itinérant ouvrent une session sur un ordinateur, leur profil itinérant est copié sur l’ordinateur local. S’ils ont déjà ouvert une session sur cet ordinateur précédemment, 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.

À l’aide de ce paramètre de stratégie, vous pouvez empêcher les utilisateurs configurés pour utiliser des profils itinérants de recevoir leur profil sur un ordinateur spécifique.

Si vous activez ce paramètre, voici ce qui se produit sur l’ordinateur concerné : à la première ouverture de session, l’utilisateur reçoit un nouveau profil local au lieu de son profil itinérant. À la fermeture de session, les modifications sont enregistrées sur le profil local. Toutes les ouvertures de session suivantes utilisent le profil local.

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.

Si vous activez à la fois le paramètre « Empêcher la propagation des modifications de profils itinérants vers le serveur » et le paramètre « N’autoriser que les profils d’utilisateurs locaux », les profils itinérants sont désactivés.

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

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System
Value name
LocalProfile
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/LocalProfile
$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 'LocalProfile' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: UserProfiles/LocalProfile
$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 'LocalProfile' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

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

Availability