Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

User is being logged off instantly after logging on?


  • Please log in to reply
6 replies to this topic

#1 MattChallinor

MattChallinor

  • Members
  • 5 posts
  • OFFLINE
  •  
  • Local time:03:14 PM

Posted 07 September 2016 - 10:15 AM

I have recently set up a new user, copied an existing user and changed all the things that needed to be changed. When I have tried to log him in on the PC he will be using he will be logged off as soon as you log on, it will go to a blue screen for a second then just log off.

 

The strangest part being that it is only on that one PC he can log in on any other PC and it works fine and other are able to log in to that PC perfectly fine.

 

This is running on a windows 7 Pro PC with active directory running on Server 2012

 

Any Suggestions?


Edited by MattChallinor, 07 September 2016 - 10:35 AM.


BC AdBot (Login to Remove)

 


#2 sflatechguy

sflatechguy

  • BC Advisor
  • 2,200 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:14 AM

Posted 10 September 2016 - 04:59 PM

Check Event Viewer on that PC for error logs related to that login. Does any other user who tries to log in to that PC get the same results, or are they able to log in to the PC?



#3 MattChallinor

MattChallinor
  • Topic Starter

  • Members
  • 5 posts
  • OFFLINE
  •  
  • Local time:03:14 PM

Posted 12 September 2016 - 02:48 AM

Check Event Viewer on that PC for error logs related to that login. Does any other user who tries to log in to that PC get the same results, or are they able to log in to the PC?

There doesn't seem to be anything in the Error log relating to the login. and any other users are able to log in fine, and this specific user that can't is able to login on any other computer, just not this one.



#4 sflatechguy

sflatechguy

  • BC Advisor
  • 2,200 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:14 AM

Posted 12 September 2016 - 07:05 AM

Sounds like the user profile may be corrupt. While logged into that PC as another user, hold down the Windows and the Pause|Break keys simultaneously, and in the left rail menu, click on Advanced system settings. Under User Profiles, click Settings. Select that user's profile and click Delete. You may also want to go to C:\Users and make sure that user's folder is deleted -- if not, delete it. Then have that user log back in.



#5 JohnnyJammer

JohnnyJammer

  • Members
  • 1,117 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:QLD Australia
  • Local time:12:14 AM

Posted 13 September 2016 - 12:37 AM

First things first, you said you copied a users profile and changed things that needed to be changed.

This leads me to think the ntuser.dat and ntuser.pol would be causing an issue, rename the old profile and create a new one then copy the documents etc over.



#6 MattChallinor

MattChallinor
  • Topic Starter

  • Members
  • 5 posts
  • OFFLINE
  •  
  • Local time:03:14 PM

Posted 13 September 2016 - 02:47 AM

Sounds like the user profile may be corrupt. While logged into that PC as another user, hold down the Windows and the Pause|Break keys simultaneously, and in the left rail menu, click on Advanced system settings. Under User Profiles, click Settings. Select that user's profile and click Delete. You may also want to go to C:\Users and make sure that user's folder is deleted -- if not, delete it. Then have that user log back in.

 

 

This seems to have fixed the problem, deleted the user profile, his user folder was already gone, restarted and it logged in fine.

 

Thanks for the help



#7 sflatechguy

sflatechguy

  • BC Advisor
  • 2,200 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:14 AM

Posted 13 September 2016 - 07:09 AM

Based on your description, it sounded like the profile on that one PC was corrupt. Deleting and recreating it is the quickest and easiest fix. Glad that's resolved.

 

@JohnnyJammer raises a good point. Copying an existing user account can go wrong for a number of reasons. We stopped doing it years ago; we've found even copying from a user template, as Microsoft recommends, doesn't always work as advertised.

When I need to create a user account with similar attributes to an existing user, I use a PowerShell script I've written that creates a brand new account, checks the settings on the existing user account, and then sets those same attributes on the new account. Works like a charm.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users