retrieve primary smtp address and SIP address for users list

Welcome Forums General PowerShell Q&A retrieve primary smtp address and SIP address for users list

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 6 years, 10 months ago.

  • Author
    Posts
  • #6536

    Member
    Points: 0
    Rank: Member

    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.

The topic ‘retrieve primary smtp address and SIP address for users list’ is closed to new replies.