Exchange PowerShell Gurus

Soldato
Joined
28 Sep 2008
Posts
14,190
Location
Britain
Hi all,

We've had to add back in some legacy X500 addresses into an organisation post migration to cope with an increase in NDRs.

I've scripted the set-mailbox to load in the X500 data but I want to output all the users who I've added an X500 address too basically to confirm it's been added :)
 
pretty basic and quick answer:

get-mailbox | fl name, emailaddresses

which lists all mailboxes, formatted showing only the name of the mailbox and the emailaddress field.

It should return the emailaddress of the user, which will contain the users email and x500 address in the same string.
 
This will also work:

get-mailbox | select -expand emailaddresses | where {$_.prefixstring -eq 'X500'}
 
Back
Top Bottom