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.


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 are closed

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 and is founder of the PowerShell Unit Testing Framework PSUnit. More...

Open Source Projects

PSUnit is a Unit Testing framwork for PowerShell. It is designed for simplicity and hosted by Codeplex.
BlogShell is The tool for lazy developers who like to automate the composition of blog content during the writing of a blog post. It is hosted by CodePlex.



Powered by:

Creative Commons License

© Copyright 2015, Klaus Graefensteiner.

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 2015 by Klaus Graefensteiner

Page rendered at 5/22/2015 1:35:46 PM (PST Pacific Standard Time UTC DST -7)