July 2017
Intermediate to advanced
648 pages
31h 9m
English
We start by getting a list of all mailboxes in the organization using the Get-Mailbox cmdlet. For each one of them, we retrieve their PrimarySmtpAddress property and check whether any part of it is made up of a digit between 0 and 9 using a regular expression. Here, we could have used -match "d" instead and the result would have been the same.
If a match is found, we then print the mailbox's display name, username, and email address.
Read now
Unlock full access