Suspend user sign-in to complete app registration
Suspendre la connexion de l’utilisateur pour terminer l’inscription de l’application
Explanation
This policy setting allows you to specify whether the app registration is completed before showing the Start screen to the user.
By default, when a new user signs in to a computer, the Start screen is shown and apps are registered in the background. However, some apps may not work until app registration is complete.
If you enable this policy setting, user sign-in is blocked for up to 6 minutes to complete the app registration. You can use this policy setting when customizing the Start screen on Remote Desktop Session Host servers.
If you disable or do not configure this policy setting, the Start screen is shown and apps are registered in the background.
Ce paramètre de stratégie vous permet d’indiquer si l’inscription de l’application est terminée avant d’afficher l’écran de démarrage à l’utilisateur.
Par défaut, lorsqu’un nouvel utilisateur se connecte à un ordinateur, l’écran de démarrage s’affiche et les applications sont inscrites en arrière-plan. Cependant, certaines applications ne fonctionnent pas tant que l’inscription n’est pas terminée.
Si vous activez ce paramètre de stratégie, la connexion de l’utilisateur est bloquée au maximum pendant 6 minutes pour terminer l’inscription de l’application. Utilisez ce paramètre de stratégie lors de la personnalisation de l’écran de démarrage sur les serveurs Hôte de session Bureau à distance.
Si vous désactivez ce paramètre ou si vous ne le configurez pas, l’écran de démarrage s’affiche et les applications sont inscrites en arrière-plan.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\AllUserInstallAgent- Value name
LogonWaitForPackageRegistration
| 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: TerminalServer/TS_RDSAppX_WaitForRegistration
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\AllUserInstallAgent'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'LogonWaitForPackageRegistration' -Value 1 -Type DWordDisable
# Disable: TerminalServer/TS_RDSAppX_WaitForRegistration
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\AllUserInstallAgent'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'LogonWaitForPackageRegistration' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": TerminalServer/TS_RDSAppX_WaitForRegistration
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\AllUserInstallAgent'
Remove-ItemProperty -Path $k -Name 'LogonWaitForPackageRegistration' -ErrorAction SilentlyContinue