Files
claudetools/clients/cascades-tucson/scripts/hide-last-user-gpupdate.ps1
Howard Enos 8d2ca14cac sync: auto-sync from HOWARD-HOME at 2026-07-17 14:14:41
Author: Howard Enos
Machine: HOWARD-HOME
Timestamp: 2026-07-17 14:14:41
2026-07-17 14:15:20 -07:00

7 lines
533 B
PowerShell

Import-Module GroupPolicy
$gpo = 'CSC - Caregiver Device Lockdown'
# Hide last logged-on username on the lock/login screen
Set-GPRegistryValue -Name $gpo -Key 'HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System' -ValueName 'DontDisplayLastUserName' -Type DWord -Value 1 | Out-Null
Set-GPRegistryValue -Name $gpo -Key 'HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System' -ValueName 'dontdisplaylockeduser' -Type DWord -Value 3 | Out-Null
Write-Output "Added DontDisplayLastUserName=1, dontdisplaylockeduser=3"