Open in the explorer

Download roaming profiles on primary computers only

Télécharger les profils itinérants sur les ordinateurs principaux uniquement

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 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
UserProfiles.admx
Internal name
UserProfiles/PrimaryComputer_RUP

Explanation

This policy setting controls on a per-computer basis whether roaming profiles are downloaded on a user's primary computers only. This policy setting is useful to improve logon performance and to increase security for user data on computers where the user might not want to download private data, such as on a meeting room computer or on a computer in a remote office.

To designate a user's primary computers, an administrator must use management software or a script to add primary computer attributes to the user's account in Active Directory Domain Services (AD DS). This policy setting also requires the Windows Server 2012 version of the Active Directory schema to function.

If you enable this policy setting and the user has a roaming profile, the roaming profile is downloaded on the user's primary computer only.

If you disable or do not configure this policy setting and the user has a roaming profile, the roaming profile is downloaded on every computer that the user logs on to.

French text from Windows 11 26H2

Ce paramètre de stratégie contrôle pour chaque ordinateur si les profils itinérants sont téléchargés sur les ordinateurs principaux de l’utilisateur uniquement. Ce paramètre de stratégie permet d’améliorer les performances d’accès et la sécurité des données utilisateur sur les ordinateurs lorsque l’utilisateur ne souhaite pas télécharger de données privées, par exemple sur l’ordinateur d’une salle de réunion ou d’un bureau distant

Pour désigner les ordinateurs principaux d’un utilisateur, un administrateur doit utiliser un logiciel de gestion ou un script pour ajouter des attributs d’ordinateur principal au compte de l’utilisateur dans les Services de domaine Active Directory (AD DS). Ce paramètre de stratégie nécessite également la version Windows Server 2012 du schéma Active Directory pour fonctionner.

Si vous activez ce paramètre de stratégie et que l’utilisateur possède un profil itinérant, ce profil est téléchargé uniquement sur l’ordinateur principal de l’utilisateur.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas et que l’utilisateur possède un profil itinérant, ce profil est téléchargé sur chaque ordinateur sur lequel l’utilisateur ouvre une session.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System
Value name
PrimaryComputerEnabledRUP
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

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: UserProfiles/PrimaryComputer_RUP
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PrimaryComputerEnabledRUP' -Value 1 -Type DWord

Disable

# Disable: UserProfiles/PrimaryComputer_RUP
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PrimaryComputerEnabledRUP' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability