Posted by: Niko | September 15, 2006

How to find all Windows XP Professional SP-1 computers in Active Directory

First you should be familiar with making custom queries in Active Directory Users and Computers console. Here’s a quick instruction:

1) Open Active Directory Users and Computers console
2) Right click Saved Queries and select New -> Query
3) Click Define Query -button
4) Choose Custom Search from the dropdown menu and click Advanced -tab
5) Type your custom query in the textbox and click OK
6) Give your query a name and a description. Here you can also define a root for your search by clicking Browse… -button.

And here is the custom query for finding all Windows XP SP-1 computers in Active Directory:

(objectCategory=computer)(operatingSystemServicePack=Service Pack 1)(operatingSystem=Windows XP Professional)
(!userAccountControl:1.2.840.113556.1.4.803:=2)

userAccountControl:1.2.840.113556.1.4.803:=2 filters out disabled computer accounts. Others are quite self-explanatory.

Advertisements

Responses

  1. […] See my earlier post about making custom query in Active Directory Users And Computers Console here. […]

  2. […] See my earlier post about making custom query in Active Directory Users And Computers Console here. […]


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

Categories

%d bloggers like this: