Monday, December 12, 2016
Windows Logs on and Logs off immediately
Windows Logs on and Logs off immediately
Issue: My desktop logs off immediately after logging on
"Windows keeps logging me off.."
"As soon as I log in, it logs off automatically"
"After turning the computer on I reach the screen where I click my account and type my password, and then it loads settings, and then BAM it saves settings and logs off right away."
This is a Registry issue which may be caused by a virus or an incorrect changes by a software or by yourself.When you login windows tries to find the registry keys required and if it does not find it logs off immediately.
HKLMSoftwareMicrosoftWindows NTCurrentVersionWinlogon
RESOLUTION to Fix Log on and Log off immediately issue
Method 1:
Navigate to the following registry key and changes the value of Shell and Userinit as mentioned below.
HKLMSoftwareMicrosoftWindows NTCurrentVersionWinlogon
Shell = explorer.exe
Userinit=X:windowssystem32userinit.exe
NOTE: These files may also be deleted by spywares. You may need to extract them using Windows CD or from another computer.
Steps for rectifying this Log on and Log off immediately problem:
- Log on to a networked computer or any other computer in your home connected to the same network.
- Open Registry and Point your cursor to HKEY_LOCAL_MACHINE.
- Select File > Connect Remote Registry.
Windows Log on and Log off immediately - Type computer name (infected computer)
- Navigate to the following location in registry of destination or infected computer.
HKLMSoftwareMicrosoftWindows NTCurrentVersionWinlogon
Edit these two values in the right pane as mentioned.
Shell=explorer.exe
Userinit = x:windowssystem32userinit.exe
6. Exit from Registry
7. Restart Infected computer.
8. You should be able to log on to computer and it wont do log off immediately.
If you dont have any other computer try the following step.
Try to boot the computer in safe mode with command prompt by pressing F8 during startup and selecting safe mode with command prompt.If it can be boot to safe mode with command prompt.
Open Registry Editor and Change the value of the following two entries in Registry key.
HKLMSoftwareMicrosoftWindows NTCurrentVersionWinlogon
Shell=explorer.exe
Userinit = x:windowssystem32userinit.exe
Windows Log on and Log off immediately |
If there is a key named "OldUserinit", delete the "Userinit" key and rename the "OldUserinit" key to "Userinit".
Method 2:
For Windows XP - Infected with Wsaupdater.exe virus
Wsaupdater.exe is spyware that changes Userinit.exe, to Wsaupdater.exe in the registry and thats why windows logs off immediately after logging in.When you scan the computer with Ad-Aware by Lavasost it removes the Wsaupdater.exe file from the computer, but it cannot change the registry subkey back to Userinit.exe,. The registry subkey that is changed is
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon
Value: Userinit
Data: C:WindowsSystem32Wsaupdater.exe
Change the data value to C:WindowsSystem32Userinit.exe,.
Note- The comma following the file path information is required.
Use the Recovery Console to copy Userinit.exe to Wsaupdater.exe to allow logon capability to be restored and to let you manually correct the registry data. To do this, follow these steps:
- At the Recovery Console command prompt, type cd system32, and then press ENTER.
- Type copy userinit.exe wsaupdater.exe, and then press ENTER.
- Type exit, and then press ENTER.
Modify the registry
Open Registry Editor and go to the following key
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon
.
In the right pane, right-click userinit, and then click Modify.
Replace wsaupdater.exe with userinit.exe, (make sure to include the comma, as shown), and then click OK.
Restart your computer.
Delete the Wsaupdater.exe file.
Method 3:
IF YOU CANNOT GET THE COPY USERINIT.EXE WSAUPDATER.EXE TO WORK
1) Use the XP Install disk and go into the Recovery Console to open Command prompt from repair your computer option that comes when pressing F8 during startup in windows Vista and above.
2) "We need to replace the software hive with a previous good backup temporarily to stop logging off immediately ."
a.) type cd system32config enter
b.) type ren software software.old enter
This renames the current software hive to software.old
c.) type copy C:windows epairsoftware enter
It should say "1 file(s) copied"
d.) Type exit to quit Recovery Console and restart.
3) Hit F8 before Windows starts to enter Safe Mode - You should hopefully be able to log in now
4) Now we need to Fix the registry
a.) Start-->Run--> type regedit, enter
b.) Select/Highlight HKEY_LOCAL_MACHINE
c.) Click File-->Load Hive
d.) Find where you saved the software.old file (C:windowssystem32configsoftware.old)
e.) Just name it test
f.) Navigate to testsoftwaremicrosoftwindows ntcurrentversionwinlogon
g.) Look for the Userinit field
h.) it may have blank or no value data.
- Double click on the key and type C:windowssystem32userinit.exe,
Note: if anything differs repeat step 5 with HKEY_LOCAL_MACHINEsoftwaremicrosoftwindows ntcurrentversionwinlogon
5) Restart and log back into Recovery Console
7) Restore the original hive now
a.) type cd system32config enter
b.) type del software enter
c.) type ren software.old software enter
d.) type exit enter
8) Log back into Windows normally. This will work for sure!. You computer will not log off immediately now.
Method 4:
If the Userinit value is correct and all the above steps does not help and you are still logged off immediately after log in then it could be an issue with the user profile or registry associated with user profile too.Use the following steps to fix this issue.
- Restart the computer and login as a Local Admin or another domain user.
- Rename: C:Users%username%
- HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsNTCurrentVersionProfileListS-X-X-XX
(S-X-X-XX is the format of profile identifier or the security identifier of a user so Look through each Profile key under this reg key and view the ProfileImagePath value to find which key is related to which user).
4. Delete the profile key of the user who has problem logging in.
Logout and login as the original user who has login issue and it will create a new profile for him.
If you do not delete the registry key it will continually give a temporary profile to that user infinitely or until you rename their C:Users%username% folder back.
Try logging in again and it should work fine.
Incoming Search Term
- Windows vista desktop logs off after logging in
- Windows Log on and Log off immediately
- Logging into domain and instantly logged off
- Windows 7 logs on then immediately logs off
- Windows 8 logs on then immediately logs off
- Windows vistalogs on then immediately logs off
- Computer keeps logging off automatically .
- Only in my laptop flash drive files changed into shortcut
- I cant log into my facebook account Forum - Facebook
- Pc logs on then off again Forum - Windows
- Xp auto log off
Available link for download