To prevent displaying usernames at the login screen, navigate to the Local Security Policy editor (`secpol.msc`), and go to `Security Options` under `Local Policies`. Here you can disable the policies “Interactive Logon: Do not display last signed-in” and “Interactive Logon: Don't display username at logon.” This will ensure that usernames are not displayed, adding an extra layer of security.