UserPrincipalName (UPN), Email Address & SIP Address Mismatch Report

Matt Ellis
Jul 27, 2018 · 2 min read

Mismatching UserPrincipalName (UPN) & Email Address

Get-CsAdUser -ResultSize Unlimited | ? {($_.UserPrincipalName -and $_.WindowsEmailAddress) -and ($_.UserPrincipalName.ToLower() -ne $_.WindowsEmailAddress.ToLower())} | ft SamAccountName, DisplayName, UserPrincipalName, WindowsEmailAddress -AutoSize

Mismatching UserPrincipalName (UPN) & SIP Address

Get-CsAdUser -ResultSize Unlimited | ? {($_.UserPrincipalName -and $_.SipAddress) -and ($_.UserPrincipalName.ToLower() -ne $_.SipAddress.ToLower().Replace("sip:",""))} | ft SamAccountName, DisplayName, UserPrincipalName, SipAddress -AutoSize

Mismatching Email Address & SIP Address

Get-CsAdUser -ResultSize Unlimited | ? {($_.WindowsEmailAddress -and $_.SipAddress) -and ($_.WindowsEmailAddress.ToLower() -ne $_.SipAddress.ToLower().Replace("sip:",""))} | ft SamAccountName, DisplayName, WindowsEmailAddress, SipAddress -AutoSize

Overall Report

AttributeMismatchReport.ps1

365 UC

Stories from the world of UC by a bunch of UC professionals…

Matt Ellis

Written by

Unified Communications Architect, Pompey fan, burger eater, coffee drinker...

365 UC

365 UC

Stories from the world of UC by a bunch of UC professionals…