In environments with Lync or Skype for Business server, it is important that a user's email address is the same as their SIP address for the best user experience. In this recipe, we will look at how we can find users where their SIP address is different than their primary email address.
Finding mailboxes with different SIP and Primary SMTP addresses
How to do it...
To list all users whose e-mail address (mail) does not match their SIP address (msRTCSIP-PrimaryUserAddress), run the following command:
Get-ADUser -Filter {mail -like "*" `
-and msRTCSIP-PrimaryUserAddress -like "*" `
-and msExchMailboxGuid -like "*"} `
-Properties msRTCSIP-PrimaryUserAddress, mail, DisplayName, SamAccountName |...