Allow asynchronous user Group Policy processing when logging on through Remote Desktop Services
Autoriser un traitement asynchrone de la stratégie de groupe utilisateur lors d’une ouverture de session par le biais des services Bureau à distance
Explanation
This policy setting allows Microsoft Windows to process user Group Policy settings asynchronously when logging on through Remote Desktop Services. Asynchronous user Group Policy processing is the default processing mode for Windows Vista and Windows XP.
By default, Window Server processes user Group Policy settings synchronously.
If you enable this policy setting, Windows applies user Group Policy settings asynchronously, when logging on through Remote Desktop Services.
If you disable or do not configure this policy setting, Windows Server applies user Group Policy settings synchronously.
Note: This policy setting applies only to computers running Remote Desktop Services.
Ce paramètre de stratégie permet à Microsoft Windows de traiter les paramètres de stratégie de groupe utilisateur de façon asynchrone lors d’une ouverture de session par le biais des services Bureau à distance. Le traitement asynchrone de la stratégie de groupe utilisateur est le mode de traitement par défaut pour Windows Vista et Windows XP.
Par défaut, Windows Server traite les paramètres de stratégie de groupe utilisateur de façon synchrone.
Si vous activez ce paramètre de stratégie, Windows applique les paramètres de stratégie de groupe utilisateur de façon asynchrone, lors d’une ouverture de session par le biais des services Bureau à distance.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, Windows Server applique les paramètres de stratégie de groupe de façon synchrone.
Remarque : ce paramètre de stratégie s’applique uniquement aux ordinateurs exécutant les services Bureau à distance.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System- Value name
ProcessTSUserLogonAsync
| 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: grouppolicy-server/ProcessTSUserLogonAsync
$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 'ProcessTSUserLogonAsync' -Value 1 -Type DWordDisable
# Disable: grouppolicy-server/ProcessTSUserLogonAsync
$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 'ProcessTSUserLogonAsync' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": grouppolicy-server/ProcessTSUserLogonAsync
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'ProcessTSUserLogonAsync' -ErrorAction SilentlyContinue