we have a situation where mail, primary SMTP (proxyAddresses) & sip address might be different.
$user=$get-aduser -filter * -properties mail,proxyAddresses,msRTCSIP-PrimaryUserAddress
$userlist|select name,SamAccountName,UserPrincipalName,DistinguishedName,Enabled,mail,msRTCSIP-PrimaryUserAddress,@{N='PrimarySMTP'; E={(($_.proxyAddresses | where {$_ -cmatch "SMTP"}) -split(':'))[1]}}
No comments:
Post a Comment