Possible to read out all MailAccounts on user account?

Good Afternoon!

I’m new to the forum, and just started scripting with powershell :slight_smile:

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 :slight_smile:

You can use ActiveDirectory cmdlets.
[pre]
Get-ADUser smith1234 -Properties proxyaddresses | Select -ExpandProperty proxyAddresses
[/pre]

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.

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).

I don’t have personal experiences with that specific topic but a short search provided these hits:

https://community.idera.com/database-tools/powershell/ask_the_experts/f/learn_powershell_from_don_jones-24/19762/extract-account-settings-from-outlook-account-settings

https://msdn.microsoft.com/en-us/magazine/dn189202.aspx

I assume you replaced with a known samAccountName?