Hide entry points for Fast User Switching
Masquer les points d’entrée pour le changement rapide d’utilisateur
Explanation
This policy setting allows you to hide the Switch User interface in the Logon UI, the Start menu and the Task Manager.
If you enable this policy setting, the Switch User interface is hidden from the user who is attempting to log on or is logged on to the computer that has this policy applied.
The locations that Switch User interface appear are in the Logon UI, the Start menu and the Task Manager.
If you disable or do not configure this policy setting, the Switch User interface is accessible to the user in the three locations.
Ce paramètre de stratégie vous permet de masquer l’élément d’interface Changer d’utilisateur dans l’interface utilisateur d’ouverture de session, le menu Démarrer et le Gestionnaire des tâches.
Si vous activez ce paramètre de stratégie, l’élément d’interface Changer d’utilisateur est masqué pour l’utilisateur qui tente de se connecter ou qui est connecté à l’ordinateur où ce paramètre de stratégie est appliqué.
L’élément d’interface Changer d’utilisateur s’affiche dans l’interface utilisateur d’ouverture de session, le menu Démarrer et le Gestionnaire des tâches.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’élément d’interface Changer d’utilisateur est accessible à l’utilisateur à ces trois emplacements.
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System- Value name
HideFastUserSwitching
| 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: Logon/HideFastUserSwitching
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'HideFastUserSwitching' -Value 1 -Type DWordDisable
# Disable: Logon/HideFastUserSwitching
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'HideFastUserSwitching' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Logon/HideFastUserSwitching
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
Remove-ItemProperty -Path $k -Name 'HideFastUserSwitching' -ErrorAction SilentlyContinue