Quantcast
Channel: Windows Server 2012 – The Wiert Corner – irregular stream of stuff
Viewing all articles
Browse latest Browse all 53

Finding out when your domain password will expire :: Active Directory :: Admin Tips :: Windows 7 :: Windows Server 2012/2008/2003/2000/XP/NT Administrator Knowledge Base :: KBase Tips :: WindowsNetworking.com

$
0
0

Here’s how you can find out when your domain password will expire.

net user %USERNAME% /domain

It figures this out for the current logon domain (so it doesn’t work cross-domain) but it is a great help, especially when filtering out just the password information:

net user %USERNAME% /domain | findstr "Password"

This can be done in a more complex way with dsquery or adinfo that are tools to query

Getting dsquery from Micrsoft

When not running on a domain controller you need to install them locally. I mentioned “Windows Server Resource Kit tools” in batch files: getting information from your Windows AD but that was when working at a client that back then was still in the XP / Windows Server 2003 R2 era.

For more modern Windows versions, you get it here (and each takes at least 20 minutes to install even on fast hardware with SSD storage):

(sort of thanks to [WayBackWhere can I get dsquery and other tools useful for debugging Active Directory issues? – Stack Overflow as [WayBack] Eelco managed to have the blog entry he referenced vanish from the internet).

Getting adinfo from Joeware

Joeware has some interesting 3rd party active directory tools many of which started out earlier than dsquery [WayBackFree Tools:

–jeroen

Source: Finding out when your domain password will expire :: Active Directory :: Admin Tips :: Windows 7 :: Windows Server 2012/2008/2003/2000/XP/NT Administrator Knowledge Base :: KBase Tips :: WindowsNetworking.com


Viewing all articles
Browse latest Browse all 53

Trending Articles