Hi guys
I have a problem. I need to compile a list of all email addresses in use at my organisation. Now I can easily get the primary email address from AD but the ones where I have a problem is where a user has a few alternate email addresses.
I have found the field and I can access pull it from AD with the following query:
get-qaduser "joe bloggs" -includeallproperties | select proxyaddresses
This returns all the alternate addresses in the following form:
{smtp:joe.bloggs@companyA.com, smtp:j.bloggs@companyA.com}
I need to be able to break that object down so my end result a spreadsheet that looks like:
joe.bloggs@companyA.com
j.bloggs@companyA.com
Does anyone have any ideas how this might be done?
Thanks.
Lee