Office365
Delete spam mail from Exchange Online for all users
The Search-Mailbox command can me user to filter mails from Exchange online and delete unwanted mail from all users mailboxes. Documentation for the command can be found here: https://technet.microsoft.com/en-us/library/dd298173(v=exchg.160).aspx Example for searing all users mailboxes, copy items to the admin account and then delete the items from the mailboxes. $UserCredential…