Skip to main content

Useful Server 2008 AD Powershell commands

By 17th February 2015November 9th, 2017No Comments

Here is a list of powershell commands that have come in handy for me:

Check if an account has expired:

Search-ADAccount – Accountexpired | FT Name,ObjectClass -A

Check if an account is disabled:

Search-ADAccount -accountdisabled | FT Name,ObjectClass -A

Check if an account’s password is set to not expire

Search-ADAccount -PasswordNeverExpires | FT Name,ObjectClass -A


Close Menu