大网数据广告活动
启动与系统组件

Can't display name of last logged-on user

· 52CE 我爱测

Describes how to prevent the name of the last logged-on user from being displayed in the Log On to Windows dialog box.

This article describes how to prevent the name of the last logged-on user from being displayed in the Log On to Windows dialog box.

Original KB number:   324740

Summary

By default, Windows displays the name of the last user who successfully logged on to the computer. This name is displayed in the Log On to Windows dialog box. Security administrators may prefer that the last logged-on user name not be displayed in the Log On to Windows dialog box. Although this configuration requires that users must type their user name (and password) each time that they sign in, it can help to prevent attempts by unauthorized users to gain access to the computer.

You can use Group Policy to prevent the name of the last logged-on user from being displayed in the Log On to Windows dialog box. The group policy can apply to the local computer, sites, domains, and organizational units (OU).

Resolution

  1. Select Start, select Run, type mmc in the Open box, and then select OK.
  2. On the File menu, select Add/Remove Snap-in.
  3. Select Add.
  4. Select Group Policy Object Editor, and then select Add.
  5. Select the target Group Policy object (GPO). The default GPO is Local Computer. Click Browse to select the GPO that you want, and then select Finish.
  6. Select Close, and then select OK.
  7. Expand the group policy object, expand Computer Configuration, expand Windows Settings, and then expand Security Settings.
  8. Expand Local Policies, and then select Security Options.
  9. In the right pane, double-click Interactive logon: Do not display last user name.
  10. Click to select the Define this policy setting check box (if it's present), and then select Enabled.
  11. Select OK.

Troubleshooting

Microsoft Windows NT 4.0-based computers don't support Windows Server 2003 Group Policy.

References

For more information about working with Group Policy in Windows Server 2003, see Group Policy Help. To do it, select Help on the Action menu in the Group Policy Object Editor snap-in, select the Contents tab, and then select Group Policy.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。