What is locking my windows domain user account out after I changed my password?

by Klaus Graefensteiner 2. July 2010 03:55

Damn it. I am locked out again. When I try to logon to the domain I get an error telling me that my account is locked out again. If this happens after you just changed your password, then the culprit is most likely a service that is still using your old password or your old password being used by the windows key store when accessing network resources.

The first thing you can do is to ask your network administrator to tell you which computer initiated the lockout. This is half the game. Next you need to look into your windows password key store to see whether there are any credentials stored. This is especially important on machines that are not joined to the domain, but are trying to access network resources using a domain account. Next find the processes that are running under the locked out account.

Here are a few PowerShell commands that will help you troubleshooting the account logout:

#List the processes and the machines for the domain user called "ThePoorDudeThatGotLockedOut"
Get-WmiObject Win32_Process -ComputerName ("easy1","easy2", "notsoeasy3" ) | Where-Object{$_.GetOwner().User -eq "ThePoorDudeThatGotLockedOut"} | Select-Object -Property ("csname", "name")

#List active network connections
netstat -a

#Open "Stored Usernames and passwords" wizard
rundll32.exe keymgr.dll, KRShowKeyMgr

The last command opens the “Stored Usernames and passwords” wizard on Windows 7. My case was solved by deleting the first entry from the list that I used to access a network share. It stored the old password. Alternatively you could edit it and change the password as well.

image

Figure 1: Windows 7 Stored User Names and Password Wizard

Next time it won’t take this long to fix the account lockout mystery. Let’s hope!

Tags: , , , , , ,

Windows 7 | Tips & Tricks | PowerShell

Comments

8/4/2010 5:54:34 AM #

frustrated guy

THANK YOU SO MUCH!!! Was pulling my hair out trying to find where this guys old password was being stored.

frustrated guy United States | Reply

8/6/2010 3:15:26 PM #

Brake Washers

Thanks buddy

Brake Washers United States | Reply

8/14/2010 2:30:13 AM #

Tagesgeld.info

Thank you for this tutorial. I've had the same problem with windows 7 and now i know how to solve it.

Tagesgeld.info Germany | Reply

8/16/2010 12:23:54 PM #

juicy couture

Wonderful and resourceful article on how to simplify````

juicy couture People's Republic of China | Reply

8/24/2010 4:12:32 PM #

crystal jewelry

great post...It's very useful for us..Thanks.

crystal jewelry United States | Reply

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



About Klaus Graefensteiner

I like the programming of machines.

Add to Google Reader or Homepage

LinkedIn FacebookTwitter View Klaus Graefensteiner's profile on Technorati
Klaus Graefensteiner

Klaus Graefensteiner
works as developer in Test at Rockwell Automation and is founder of the PowerShell Unit Testing Framework PSUnit. More...

Administration

About

Powered by:
BlogEngine.Net
Version: 1.5.0.7

License:
Creative Commons License

Copyright:
© Copyright 2009, Klaus Graefensteiner.

Disclaimer:
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Theme design:
This blog theme was designed and is copyrighted 2009 by Klaus Graefensteiner

Rendertime:
Page rendered at 9/8/2010 9:59:33 AM (PST Pacific Standard Time UTC DST -7)