Results 1 to 4 of 4

Thread: View number of objects in entire OU?

  1. #1
    Join Date
    Nov 2005
    Posts
    111

    View number of objects in entire OU?

    Can anyone tell me a way within AD to show the number of objects within a certain OU including sub-containers? If I will go to each sub-container then it will show the number but I want to be able to click the upermost OU and then be able to set the type of objects to count and then get that total. Is this possible to do? I am on a Windows 2003 native domain.

  2. #2
    Join Date
    Jan 2006
    Posts
    605

    Re: View number of objects in entire OU?

    There is a quick way to do this, you just need to use Find item from the context sensitive menu of the top level of OU, that is, from within the Find list box you can specify what type of object you want to include in the result list. The other options normally include dsquery, adfind, scripting, etc.

  3. #3
    Join Date
    Jun 2006
    Posts
    623
    You can try to use adfind to count number of objects in domain:

    adfind -default -f "(objectCategory=*)" -c

    After that, if you want to count number of objects in an OU (and sub OU's):

    adfind -b ou=West,dc=MyDomain,dc=com -f "(objectCategory=*)" -c

    You can also use ADO in a VBScript program, see this link:

    http://www.rlmueller.net/ADOSearchTips.htm

  4. #4
    Join Date
    Jan 2006
    Posts
    830
    I think that ADS by default will limit queries to 1000 results. It has to be changed using ntdutil if you think you will ever do queries that can return more than 1000 entries. It is usually to cut down on denial of service attacks.

Similar Threads

  1. Replies: 3
    Last Post: 30-01-2012, 06:01 PM
  2. Replies: 6
    Last Post: 24-09-2011, 01:32 AM
  3. Replies: 6
    Last Post: 16-08-2011, 10:51 PM
  4. Replies: 5
    Last Post: 21-03-2011, 10:24 AM
  5. How to View entire network server
    By Rubo in forum Networking & Security
    Replies: 2
    Last Post: 22-07-2009, 01:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,164,573.90010 seconds with 17 queries