Monday, June 26, 2006

Finding Computers witha Particular OS

Have you ever wanted to know what OS versions, release, or service packs you have in your environment? Of course you do… Here is a quick way to find out.

  1. Open LDP
  2. From the menu, select Connection à Connect
  3. For Server, enter the name of the domain controller (or leave it blank to do a server-less bind)
  4. For Port, enter 389
  5. Click Ok
  6. From the menu, select Connection à Bind
  7. Enter credentials of a user to perform the search
  8. Click OK
  9. From the Menu, select Browse à Search
  10. For Base Dn, enter the base of where you want your search to begin.
  11. For Filter, enter a filter that contains the OS attribute you want to search on.
  12. Select the appropriate Scope based on how deep you want to search
  13. Click the Options button if you want to customize the list of attributes returned for each matching object
  14. Click Run and the results will be displayed in the right pane.

OR you can do what I do and run dsquery in a command line:

  • Dsquery * -scope subtree –attr “*” – filter “(&(objectclass=computer) (objectcategory=computer)(operatingSystem=Windows Server 2003))”

No comments: