How to.. Find out the total number of Lync Users in your environment


Hello my friends!

In Today’s post we are going over a simple question that is not that easy to answer when using Lync.  The question is.. How many Lync Users I have in total and also per location.

The answer is simple using PowerShell, basically to find out the total number of Lync users we can run these two cmdlets. Bear in mind that I defined 5000 as the maximum number to be retrieved, so change that accordingly but guarantee that number is higher than you total amount of users.

$TotalUsers =Get-CSUser –ResultSize 5000



Well, how about location? It’s a piece of cake! Just add the –OU and then specify the location and you are golden! Check in the example below when I get all Lync Users from Argentina OU.


Anderson Patricio (Portuguese)
Twitter: @apatricio


About Anderson Patricio
Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides of the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson contributes to the Microsoft Community with articles, tutoriais, blog posts, twitter, forums and book reviews. He is a regular contributor here at,, and Anderson (Portuguese).

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: