The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,421 other followers

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

Posted by jpluimers on 2018/02/02

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: