Identify stale Active Directory computer accounts with dsquery

One frustrating housekeeping task for Active Directory is ensuring that old computer accounts (usually servers, desktop PCs, or laptops within Active Directory) are removed. A quick look at the Object tab of a computer account will tell you when the update sequence number (USN) was updated, but not the last time the computer logged into the domain. Some possible reasons why stale computer accounts get into Active Directory include a test virtual machine is disposed, an old server is retired, or a server is upgraded and the old one is held onto just in case.


Read the entire post at TechRepublic.


Leave a Reply

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

You are commenting using your 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: