Warwick_Tech Posted March 9, 2021 Posted March 9, 2021 Hi All, We use a script to sweep and wipe emails from a specific user Get-Mailbox -ResultSize unlimited | Search-Mailbox -SearchQuery 'from:"[email protected]"' -DeleteContent -force But is there a way to do whole domains? Standard wildcard * and removing the @ show an error.
fordea Posted March 9, 2021 Posted March 9, 2021 According to the KQL docs: https://docs.microsoft.com/en-us/exchange/security-and-compliance/in-place-ediscovery/message-properties-and-search-operators you should be able to just specify 'from:constoso.com' to cover a whole domain.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now