Friday 16 December 2022

Powershell command to get output of EV users based on the country they belong if they were assigned with DID

 Get-CsOnlineUser | where-object {($_.LineURI -ne $null) -and ($_.EnterpriseVoiceEnabled -eq $true) -and ($_.Department -ne "Microsoft Communication Application Instance")} | Sort-Object Dialplan | ft DisplayName,LineURI,DialPlan,City,Department