Possible to read out all MailAccounts on user account?

Welcome Forums General PowerShell Q&A Possible to read out all MailAccounts on user account?

This topic contains 5 replies, has 3 voices, and was last updated by

 
Moderator
3 weeks, 5 days ago.

  • Author
    Posts
  • #125169

    Participant
    Points: 14
    Rank: Member

    Good Afternoon!

    I'm new to the forum, and just started scripting with powershell 🙂

    Right now i'm creating a script that is showing all kinds of info about a user's pc.

    But i'm struggeling to develop \ find info about the following feature: Is it Possible to read out all MailAccounts on user account? I know this possible in the Exchange environment, but haven't seen this option within a local windows machine.

    Do any of you know if there's a build in command that can do this? Or if someone already made a script that does this?

    Help is much appreciated!

    Thanks in advance 🙂

  • #125172

    Moderator
    Points: 174
    Team MemberHelping Hand
    Rank: Participant

    You can use ActiveDirectory cmdlets.

    Get-ADUser smith1234 -Properties proxyaddresses | Select -ExpandProperty proxyAddresses
    
  • #125177

    Participant
    Points: 261
    Helping Hand
    Rank: Contributor

    I'd think it depends pretty much on the mail program the users use. If it is Thunderbird for example you would have to query the Thunderbird configuration.

  • #125267

    Participant
    Points: 14
    Rank: Member

    Hello,

    Didn't expect such an quick reply!

    We use Office Outlook as our mail program.

    I also tried the command Wes provided before, but for some reason I won't get any output. Even tho i'm using it on a Windows Server (Which has AD DS installed and configured).

  • #125292

    Participant
    Points: 261
    Helping Hand
    Rank: Contributor
  • #125396

    Moderator
    Points: 174
    Team MemberHelping Hand
    Rank: Participant

    I assume you replaced with a known samAccountName?

You must be logged in to reply to this topic.