Dsquery Stalepwd Example

If you want to find out if your computer’s domain password has expired and the computer has fallen off the domain you can use this dsquery command. In this example, we see if a computer named “computer1” has a password older than 90 days (which is the default age to be removed form the domain):

dsquery computer -stalepwd 90 | dsquery computer -name computer1

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

One thought on “Dsquery Stalepwd Example

Leave a comment

Your email address will not be published. Required fields are marked *