Solved

count AD object via Quest command shell

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

Join & Write a Comment

How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now