Open in the explorer

Set roaming profile path for all users logging onto this computer

Définir un chemin d’accès de profil itinérant pour tous les utilisateurs ouvrant une session sur cet ordinateur

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 Vista FR: Au minimum Windows Vista
ADMX file
UserProfiles.admx
Internal name
UserProfiles/MachineProfilePath

Explanation

This policy setting specifies whether Windows should use the specified network path as the roaming user profile path for all users logging onto this computer.

To use this policy setting, type the path to the network share in the form \\Computername\Sharename\. It is recommended to use a path such as \\Computername\Sharename\%USERNAME% to give each user an individual profile folder. If not specified, all users logging onto this computer will use the same roaming profile folder as specified by this policy. You need to ensure that you have set the appropriate security on the folder to allow all users to access the profile.

If you enable this policy setting, all users logging on this computer will use the roaming profile path specified in this policy.

If you disable or do not configure this policy setting, users logging on this computer will use their local profile or standard roaming user profile.

Note: There are four ways to configure a roaming profile for a user. Windows reads profile configuration in the following order and uses the first configured policy setting it reads.

1. Terminal Services roaming profile path specified by Terminal Services policy
2. Terminal Services roaming profile path specified by the user object
3. A per-computer roaming profile path specified in this policy
4. A per-user roaming profile path specified in the user object

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie si Windows doit utiliser le chemin d’accès réseau spécifié en tant que chemin d’accès de profil utilisateur itinérant pour tous les utilisateurs ouvrant une session sur cet ordinateur.

Pour utiliser ce paramètre de stratégie, tapez le chemin d’accès au partage réseau sous la forme \\Nom_ordinateur\Nom_partage\. Il est recommandé d’utiliser un chemin d’accès tel que \\nom_ordinateur\nom_partage\%NOM_UTILISATEUR% pour donner à chaque utilisateur un dossier de profil individuel. Si vous ne le faites pas, tous les utilisateurs ouvrant une session sur cet ordinateur utiliseront le même dossier de profil itinérant tel qu’il est spécifié par cette stratégie. Vous devez vous assurer d’avoir défini la sécurité appropriée sur le dossier pour permettre à tous les utilisateurs d’accéder au profil.

Si vous activez ce paramètre de stratégie, tous les utilisateurs ouvrant une session sur cet ordinateur utiliseront le chemin d’accès de profil itinérant spécifié par cette stratégie.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les utilisateurs ouvrant une session sur cet ordinateur utiliseront leur profil local ou leur profil utilisateur itinérant standard.

Remarque : il existe 4 façons de configurer un profil itinérant pour un utilisateur. Windows lit la configuration des profils dans l’ordre suivant et applique le premier paramètre de stratégie configuré qu’il rencontre.

1. Chemin d’accès de profil itinérant des services Terminal Server spécifié par les services Terminal Server
2. Chemin d’accès de profil itinérant des services Terminal Server spécifié par l’objet utilisateur
3. Un chemin d’accès de profil itinérant par ordinateur spécifié dans cette stratégie
4. Un chemin d’accès de profil itinérant par utilisateur spécifié dans l’objet utilisateur

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: UserProfiles/MachineProfilePath
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Users logging onto this computer should use this roaming profile path
Set-ItemProperty -Path $k -Name 'MachineProfilePath' -Value '<value>' -Type ExpandString

Disable

# Disable: UserProfiles/MachineProfilePath
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Users logging onto this computer should use this roaming profile path:Il est recommandé que les utilisateurs ouvrant une session sur cet ordinateur utilisent ce chemin d’accès de profil utilisateur :MachineProfilePath_MessageText boxtextMachineProfilePathREG_EXPAND_SZ
Max length: 260

Availability