Overview
The Windows Logon Policy controls how Windows presents accounts and user-switching options at sign-in. Use it to balance sign-in convenience with the privacy of account information on managed devices.
The policy provides three settings:
Enumerate Local Users: Lists local accounts on domain-joined computers.
Don't Display Last Username: Hides the last signed-in user's name and sign-in tile.
Hide Fast User Switching: Hides the Switch User interface.
These settings change the Windows sign-in experience. They do not create or delete accounts, reset passwords, grant administrator rights, configure automatic sign-in, or replace authentication requirements.
Requirements
Requirement | Details |
Platform | Windows 10 or later, including Windows 11 |
Editions | Pro, Enterprise, Education, and applicable IoT Enterprise editions; the Microsoft policy interfaces are not listed for Home |
Device ownership | Company-owned and BYOD |
Enrollment | The device must be enrolled in Swif Windows MDM |
Connectivity | The device must be online to receive policy changes |
Enumerate Local Users | Windows 10 version 1803 or later |
Don't Display Last Username | Windows 10 version 1709 or later |
Hide Fast User Switching | Windows 10 version 1703 or later |
Use a Windows release that is still covered by your organization's servicing arrangements. The minimum versions above describe feature availability, not a recommendation to deploy older releases.
Microsoft documents device-level applicability in the WindowsLogon Policy CSP and LocalPoliciesSecurityOptions Policy CSP.
Defaults
The Swif policy form declares the following field defaults:
Setting | Form default |
Enumerate Local Users | Disabled |
Don't Display Last Username | Disabled |
Hide Fast User Switching | Disabled |
An omitted setting is not necessarily the same as explicitly selecting Disabled. Existing Windows configuration or another management policy may affect the result. Review the saved values and test the effective behavior.
Policy Settings
Enumerate Local Users
Controls whether Windows lists local user accounts on domain-joined computers.
Value | Behavior |
Enabled | Windows lists local users on domain-joined computers. |
Disabled or not configured | Windows does not enumerate local users on domain-joined computers. |
Enable this setting when users of a domain-joined PC need to select local accounts from the sign-in screen.
This is not a directory of all domain users. It also does not enable disabled accounts or give an account permission to sign in. Do not assume that an Entra-only joined or workgroup device will behave like an Active Directory domain-joined device; verify the actual join state and sign-in experience.
Don't Display Last Username
Controls whether Windows displays the last signed-in user's identity.
Value | Behavior |
Enabled | Hides the last signed-in username and associated tile. Users must identify the account they want to use. |
Disabled | Allows Windows to display the last signed-in username and tile. |
Enable this setting on devices where exposing a recent user's identity is undesirable, such as shared workstations or devices in publicly accessible locations.
Before deployment, make sure employees know their Windows sign-in name. For example, a local account can be identified as \.username, and an Active Directory account as DOMAIN\username or its user principal name when supported.
This setting is not a guarantee that all identifying information is hidden everywhere. Windows has separate controls for information shown on a locked session and during sign-in. See Microsoft's explanation of Don't display last signed-in.
Hide Fast User Switching
Controls access to the Switch User interface in the sign-in screen, Start menu, and Task Manager.
Value | Behavior |
Enabled | Hides Switch User entry points. |
Disabled or not configured | Leaves Switch User entry points accessible. |
Hiding the interface is not the same as signing out existing sessions or enforcing a single-session security boundary. Do not use it as a substitute for account restrictions or session-management controls.
Choose a Configuration
Use these examples as starting points, then test with the device's join type and credential providers.
Scenario | Enumerate Local Users | Don't Display Last Username | Hide Fast User Switching |
Privacy-focused workstation | Disabled | Enabled | Disabled |
Shared domain-joined PC where users select local accounts | Enabled | Disabled | Disabled |
Assigned workstation where switching is intentionally hidden | Disabled | Enabled | Enabled |
For the shared-PC example, the convenience of account selection comes with greater visibility of local usernames. For the third example, document the sign-out procedure and test help-desk access before deployment.
Avoid treating Enumerate Local Users and Don't Display Last Username as independent promises that every tile will both appear and be hidden. They affect related parts of the interface. If predictable account tiles are the goal, start with the shared-PC configuration and test it.
Create the Policy
Sign in to the Swif Admin Dashboard.
Go to Device Management > Policies and create a new policy.
Select Windows Logon Policy.
Enter a descriptive name, such as
Windows Sign-in Privacy.Configure the three settings for your intended sign-in experience.
Assign the policy to a small test device group.
Save the policy and allow the devices to check in.
Review the policy report and verify sign-in behavior before expanding the assignment.
Before testing: Save open work, confirm a working administrator recovery method, and tell the test user what will change. Signing out closes applications and can discard unsaved work.
Verify the Policy
Confirm that the device received the latest policy and review any reported errors.
Record whether the device is domain-joined, Entra joined, or in a workgroup.
Save open work and sign out of Windows. Test a full sign-out separately from simply locking the screen.
Check whether local account tiles and the last signed-in identity match the intended configuration.
Sign in with an approved test account.
Check Switch User availability in the relevant Windows interfaces.
Confirm that help-desk and recovery sign-in procedures still work.
If Windows continues showing an older interface, arrange a restart at a suitable time and test again. Do not restart a production device without notifying its user.
Inspect Related Group Policy Settings
On editions with the relevant administrative consoles, the corresponding Windows settings are:
Swif setting | Windows policy location |
Enumerate Local Users | Computer Configuration > Administrative Templates > System > Logon > Enumerate local users on domain-joined computers |
Don't Display Last Username | Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options > Interactive logon: Don't display last signed-in |
Hide Fast User Switching | Computer Configuration > Administrative Templates > System > Logon > Hide entry points for Fast User Switching |
These locations help identify overlapping Group Policy configuration. A local policy editor alone is not proof that an MDM setting applied successfully. Use the Swif report and observed behavior as well.
Troubleshooting
Only an Administrator Account Appears
Seeing only SwifAdmin or another administrator tile does not mean the employee account was deleted.
Check the following:
Does the expected account still exist and remain enabled?
Is the device Active Directory domain-joined?
Is Enumerate Local Users enabled if local account tiles are required on that device?
Is Don't Display Last Username changing the expected tile presentation?
Is Hide Fast User Switching hiding the path to another account?
Is a security baseline, Group Policy, or credential provider applying additional restrictions?
If Other user is available, try the correct account name, such as \.username for a local account. Do not delete or recreate an account solely because its tile is missing.
Users Are Asked to Enter a Username
This is expected when Don't Display Last Username is enabled. Provide employees with their approved sign-in format. If visible account tiles are required instead, review the configuration with your security team.
Switch User Is Missing
Check Hide Fast User Switching. If it is enabled intentionally, users should save work and follow the approved sign-out procedure before another user signs in. If switching should remain available, set it to disabled and check for conflicting management settings.
Local Users Still Do Not Appear
Confirm that the device meets the setting's minimum version and domain-join requirement. Then check account status, other sign-in privacy settings, and credential-provider behavior. Enabling enumeration does not override every other condition affecting account tiles.
The Policy Reports an Error or Has No Effect
Confirm the Windows edition and build, MDM enrollment status, connectivity, and the most recent policy report. Review Windows MDM diagnostics under Event Viewer > Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider > Admin.
Also check whether Group Policy, another MDM service, a hardening script, or another Swif policy manages the same settings. Do not assume one system always wins; resolve overlapping management deliberately.
A Password or PIN Is Rejected
This policy does not reset credentials or unlock accounts. Investigate the account name, account status, password or PIN, domain connectivity, and credential provider separately from tile visibility.
Change or Remove the Policy
To change behavior, edit the policy, save it, allow devices to check in, and repeat the sign-in tests.
To stop managing these settings, remove the policy assignment and verify the resulting configuration. Do not assume removal restores an earlier value or overrides settings delivered by another management system. If a specific rollback state is required, test it on a pilot device first.
Removing this policy does not remove Windows user accounts.