Showing posts with label Find Lync Enterprisevoice enabled users. Show all posts
Showing posts with label Find Lync Enterprisevoice enabled users. Show all posts

Monday, August 1, 2016

List out EnterpriseVoice enabled users and Lync enabled users from the given users list ?

I got an assignment to find out a number of AD users who are enabled with Lync and Enterprise voice. if it’s a small site I could have exported user list in CSV and played with Excel to filter but its multi FE pool scenario where more than 30K users exist. i have created following script which was helped me to sort out the issue.

I have copied given employee ID in text file and named it as user.txt
----------------------------
$users = Get-Content -Path E:\Raju\user.txt
ForEach ($user in $users)
{
GET-csUser -identity $user -ErrorAction SilentlyContinue | Where { $_.EnterprisevoiceEnabled -eq $true } | Select-Object Samaccountname,DisplayName,sipaddress,LineUri,Registrarpool
}

---------------------------

Just tried to tweak the same script to check if these users are enabled with Lync or not

-----------------------------------
$users = Get-Content -Path E:\Raju\user.txt
ForEach ($user in $users)
{
GET-csUser -identity $user -ErrorAction SilentlyContinue | Where { $_.Enabled -eq $true } | select-object Samaccountname,DisplayName,sipaddress,LineUri
}
-----------------------------------

Regards, Rajukb
This posting is provided "as is" with no warranties and confers no rights.