As an admin, how do we find out when a user’s password expires?
It is easy to find, once you know the command ;)
The one we need to run is Net User username /domain from the command prompt. It gives you more info than what you are looking for, but it has all the info about the password – when the password was changed, when will it expire etc.
You can run it from any domain account on the same network :)
Thanks James.
Does this need to be ran on Domain Controller?
Hi Edmundo,
You should be able to run it from any server.
Thanks
Works quite well thanks!
btw, I tried without the /domain in a win 2003 R2 and it worked fine.
Thanks Pnatel.
The /domain is only required in Windows XP.
The /domain is used to indicate that the account is a domain account (in the current domain), not a local account. I found this out experimentally, as I was trying to lookup information on both domain and local accounts in Windows 7. net user /help confirms this.
For example
net user nondomainuser
returns the user info
net user nondomainuser /domain
returns “the user name could not be found”
net user domainuser
returns “the user name could not be found”
net user domainuser /domain
returns the user info
Thanks for the examples Chris. Much appreciated.
It doesn’t appear that /domain is required. You get all of the desired info with out it.
Hi Pat,
Tested on an XP machine and it does need the /domain.
Did you test it on Windows 7?
Thanks,
This is the command i use, when users call and tell me they are unable to log in. Use this command to quickly verify if their password has expired.
In case it has, you can quickly reset it using Powershell using the set-adaccountpassword cmdlet.
Thanks Prakash for the tip.
Thank You very much for this. helps a lot.