Find AD Computers by Operating System

A client is looking to identify all remaining Windows 2000 and Windows XP machines in their domain and upgrade them. So, how do we track them down? Assuming they are part of the domain, we can query for computer objects with XP or 2000 in the OS name. Here is an example to gather just Windows 2000 boxes.

get-adcomputer -properties operatingsystem -filter ‘operatingsystem -like "*2000*"’

If the domain hasn’t been maintained and there are a lot of objects for long since retired machines, including the password last set date may be helpful. Just add

PasswordLastSet to the –properties argument.

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s