Skip to main content

ExchangeDeleteMail

Deprecated

Please use the Exchange 2016 Compliance Search integration instead.

Searches all mailboxes on an Exchange server for a query and deletes all the messages which satisfy the query. This script runs through the agent on a Windows machine, it pulls and executes a PowerShell script, which talks to the Exchange server.

Script Data#


NameDescription
Script Typejavascript
Tagsexchange, email

Inputs#


Argument NameDescription
queryThe exchange query to match against the emails.
serverThe hostname of the Exchange server.

Outputs#


There are no outputs for this script.