Solved

count AD object via Quest command shell

Posted on 2013-11-07
2
664 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

860 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