Skip to main content


This Script is part of the D2 Pack.#

Searches mails in office-365.

Script Data#

Script Typepython
Tagsoffice365, email, response


Argument NameDescription
usernameThe administrator user to use for compliance search.
passwordThe password for the specified user.
timeoutThe amount of time before the timeout occurs. (in seconds) The default is 5 mins. The maximum is 2 hours.
queryThe query to use for finding mail.
systemThe windows system to run the powershell script.
deleteWhether the script will delete found emails. This will occur if set to "true" (case insensitive). The default is false.


There are no outputs for this script.