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

$TotalUsers.Count

image

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.

image


Cheers,
Anderson Patricio
http://www.andersonpatricio.ca
http://www.andersonpatricio.org (Portuguese)
Twitter: @apatricio

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: