My windows xp logoff immediately after logon. so I have no chance to do anything in windows. this happens in safe mode and for all users too. The system was working properly before it and it was not connected to network for virus infection. I also checked the problem due to userinit registry key from recovery console and it was correct. Do you have any idea about the problem and solution.