Hi David,
After consulting our related team, we can achieve your goal via the following “piped-command”:
Get-Recipient |ft Displayname, RecipientType, PrimarySmtpAddress, EmailAddresses –Wrap
Thanks,
Gary
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The following Powershell command does not give the results expected:
get-recipient | Select-Object -property DisplayName -ExpandProperty emailaddresses
As per (example 2):
https://msdn.microsoft.com/powershell/reference/5.1/Microsoft.PowerShell.Utility/Select-Object
What am I doing wrong?
Thanks in advance
David (Nobby) Barnes
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Hi David,
After consulting our related team, we can achieve your goal via the following “piped-command”:
Get-Recipient |ft Displayname, RecipientType, PrimarySmtpAddress, EmailAddresses –Wrap
Thanks,
Gary
Hi David,
Thanks for your sharing. I have tried the script you provided above and it works find. To see if we can achieve your goal via just one cmdlet or two cmdlets, I am consulting our related team and will post back if I get any updates.
Thanks,
Gary
Hi David,
Thanks for your sharing. I have tried the script you provided above and it works find. To see if we can achieve your goal via just one cmdlet or two cmdlets, I am consulting our related team and will post back if I get any updates.
Thanks,
Gary
Many thanks
David (Nobby) Barnes
Way to go..
That is pretty damned close..
Ace..
Many thanks :)
I know this doesn't expand the 'EmailAddresses' so they are neatly one line each..
But for a quick report for management and the ability to view/search all addresses on the system, this will do nicely..
Many thanks
David (Nobby) Barnes
Hi David,
All Right. If you have any other questions when using Office 365 in future, please feel free to post a new thread in our forum.
Best Regards,
Amanda