It sounds like you are experiencing an issue where your new laptop logs on and then immediately logs off, which can be frustrating. This problem may occur when the Winlogon service fails to load the Windows default shell (explorer.exe) and user shell (userinit.exe) from the registry.
To resolve this issue, you can try the following steps:
- Log on to a networked computer.
- Run
Regedit.exe
. - Navigate to
HKEY_LOCAL_MACHINE
. - Select File > Connect Remote Registry and type the name of the affected computer.
- Navigate to
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
. - Edit the values for
Shell
andUserinit
in the right pane:- Set
Shell
toexplorer.exe
- Set
Userinit
toC:\windows\system32\userinit.exe
- Set
- Exit from the Registry and restart the affected computer.
If these steps do not resolve the issue, the machine may be compromised.
References: