Why not (&(objectCategory=computer)(|(operatingSystem=Windows 2000 Server)(operatingSystem=Windows Server 20003)))
This is at least limited to computer objects and should be slightly better. Gruesse - Sincerely, Ulf B. Simon-Weidner MVP-Book "Windows XP - Die Expertentipps": http://tinyurl.com/44zcz Weblog: http://msmvps.org/UlfBSimonWeidner Website: http://www.windowsserverfaq.org Profile: http://mvp.support.microsoft.com/profile=35E388DE-4885-4308-B489-F2F1214C811 D |-----Original Message----- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] On Behalf Of Paul Williams |Sent: Monday, April 03, 2006 10:05 PM |To: ActiveDir@mail.activedir.org |Subject: Re: [ActiveDir] Finding best way to list servers in AD. | |I usually use: | |(&(objectCategory=computer)(operatingSystem=*Server*)) | | |But this is a lot more efficient: | |(|(operatingSystem=Windows 2000 Server)(operatingSystem=Windows Server |20003)) | | |Although it' still not great as there's no indexed attribute. | | |----- Original Message ----- |From: "AD" <[EMAIL PROTECTED]> |To: <ActiveDir@mail.activedir.org> |Sent: Monday, April 03, 2006 7:48 PM |Subject: [ActiveDir] Finding best way to list servers in AD. | | |> Ok ladies and gentlemen, |> |> Once again I need your help. What would be the best query to |list all |> servers in Active Directory knowing that no additional |indexes have been |> added from the default install? |> |> 1. (&(|(operatingSystem=Windows 2000 Server)(operatingSystem=Windows |> Server 20003)) |> |> 2. (&(ObjectCategory=Computer)(OperationSystem=*Server*)) |> |> I do not know of any other attribute to use other then |operationSystem |> which limits your options. |> |> Thanks |> |> Yves St-Cyr |> List info : http://www.activedir.org/List.aspx |> List FAQ : http://www.activedir.org/ListFAQ.aspx |> List archive: |http://www.mail-archive.com/activedir%40mail.activedir.org/ | |List info : http://www.activedir.org/List.aspx |List FAQ : http://www.activedir.org/ListFAQ.aspx |List archive: |http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/