大网数据广告活动
账户与安全

Can't log on to Windows

· 52CE 我爱测

Describes an issue where you're prompted for user name and password repeatedly when logging on Windows.

This article describes an issue where you can't sign in to the system and you're prompted for username and password repeatedly.

Applies to:   Supported versions of Windows Server
Original KB number:   555648

Symptoms

Windows logs on and logs off immediately when you try logging on to Windows. When you type the username and password, you're again presented with User name and Password dialogue box. You try hard to get in but to no avail.

Cause

You can't log on to system using either Normal Mode or Safe Mode. This occurs only when Winlogon service tries to load the Windows default shell (explorer.exe) and user shell (userinit.exe) from registry. This service searches for Explorer.exe and Userinit.exe in the following path of registry:

HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

Resolution

Edit these values and type the correct path of shell:

Shell = explorer.exe
Userinit = C:\windows\system32\userinit.exe

Note: These files may also be deleted by spywares. You may need to extract them using Windows CD.

Steps for rectifying this problem

  • Log on to a networked computer.

  • Run Regedit.exe.

  • Point your cursor to HKEY_LOCAL_MACHINE.

  • Select File > Connect Remote Registry.

  • Type the computer name (infected computer).

  • Navigate to the following location in registry of destination or infected computer:

    HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

  • Edit these two values in right pane:

    Shell
    Userinit

  • Change these two values to

    Shell = explorer.exe
    Userinit = C:\windows\system32\userinit.exe

  • Exit from Registry.

  • Restart the infected computer.

  • You should be able to log on to the computer.

Important: If the above steps didn't resolve the issue, the machine should be considered compromised.

Community Solutions Content Disclaimer

Microsoft corporation and/or its respective suppliers make no representations about the suitability, reliability, or accuracy of the information and related graphics contained herein. All such information and related graphics are provided "as is" without warranty of any kind. Microsoft and/or its respective suppliers hereby disclaim all warranties and conditions with regard to this information and related graphics, including all implied warranties and conditions of merchantability, fitness for a particular purpose, workmanlike effort, title and non-infringement. You specifically agree that in no event shall Microsoft and/or its suppliers be liable for any direct, indirect, punitive, incidental, special, consequential damages or any damages whatsoever including, without limitation, damages for loss of use, data or profits, arising out of or in any way connected with the use of or inability to use the information and related graphics contained herein, whether based on contract, tort, negligence, strict liability or otherwise, even if Microsoft or any of its suppliers has been advised of the possibility of damages.

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)

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

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