# retrieve primary smtp address and SIP address for users list

**URL:** <https://forums.powershell.org/t/retrieve-primary-smtp-address-and-sip-address-for-users-list/1590>\
**Category:** PowerShell Help\
**Created:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/retrieve-primary-smtp-address-and-sip-address-for-users-list/1590 "2011-12-31T18:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![archives](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@archives](https://forums.powershell.org/u/archives)\
**Post date:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/retrieve-primary-smtp-address-and-sip-address-for-users-list/1590/1 "2011-12-31T18:30:00Z")

</div>

by gingalls at 2013-03-28 05:31:30

> hello,  
> I have a text file that contains the display name of users and I need a script to retrieve both the primary SMTP address and SIP addresses for those users  
> listed in the text file.  
>   
> Thank you  
> Gordon

by coderaven at 2013-03-28 07:36:15

> When you pull the data from AD using say the Get-ADUser cmdlet, you just want attributes mail, proxyaddresses and I usually pull userprincipalname.  
>   
> `Get-ADUser -Identity … -Properties mail, proxyaddresses`  
>   
> The mail attribute should be their primary SMTP, ProxyAddresses will contain SIP alias SMTP addresses.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 9:03pm UTC](https://forums.powershell.org/t/retrieve-primary-smtp-address-and-sip-address-for-users-list/1590/2 "2024-05-16T21:03:55Z")

</div>


