Enables the use of Token Broker for AD FS authentication
Active l’utilisation du service Broker à jetons pour l’authentification AD FS
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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