Open in the explorer

Enables the use of Token Broker for AD FS authentication

Active l’utilisation du service Broker à jetons pour l’authentification AD FS

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Work Folders FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Dossiers de travail
Supported on
At least Windows Server 2016, Windows 10 Version 1703 FR: Windows Server 2016, Windows 10 version 1703 ou versions supérieures
ADMX file
WorkFolders-Client.admx
Internal name
WorkFolders-Client/Pol_UserEnableTokenBroker

Explanation

This policy specifies whether Work Folders should use Token Broker for interactive AD FS authentication instead of its own OAuth2 token flow used in previous versions.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie si la fonctionnalité Dossiers de travail doit utiliser le service Broker à jetons pour l’authentification AD FS interactive à la place de son propre flux de jetons OAuth2 utilisé dans les versions précédentes.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WorkFolders
Value name
EnableTokenBroker
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: WorkFolders-Client/Pol_UserEnableTokenBroker
$k = 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableTokenBroker' -Value 1 -Type DWord

Disable

# Disable: WorkFolders-Client/Pol_UserEnableTokenBroker
$k = 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableTokenBroker' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WorkFolders-Client/Pol_UserEnableTokenBroker
$k = 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders'
Remove-ItemProperty -Path $k -Name 'EnableTokenBroker' -ErrorAction SilentlyContinue

Availability

Windows Server