Solved

count AD object via Quest command shell

Posted on 2013-11-07
2
666 Views
Last Modified: 2013-11-07
hi experts
i am using quest command shell, i want to count for example how many user accounts under such OU, what command should i using?

thank you
0
Comment
Question by:beardog1113
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 39632794
You can use measure command.. For example.. to find user count of OU  'CN=Users,DC=Domain,DC=com'
Get-QADUser -SearchRoot 'CN=Users,DC=Domain,DC=com' | measure | FL count

Open in new window

0
 

Author Closing Comment

by:beardog1113
ID: 39632797
perfect
thanks
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains the steps required to use the default Photos screensaver to display branding/corporate images
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question