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.
Awesome Blog, I Loved it, Me first time here in the Blog.SEO jobs in Hyderabad
ReplyDeleteI am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly
ReplyDeleteCCNA jobs in Hyderabad .