Kaspersky Security 9.x for Microsoft Exchange Servers

Script execution parameters

April 2, 2024

ID 71964

The Microsoft Exchange Web Services Managed API 2.0 program interface is required to run the script intended for sending spam for research. Download the software module of this interface by clicking the following link: http://www.microsoft.com/en-us/download/details.aspx?id=35371 and store it in the bin subfolder of the folder containing the script.

Regardless of the script mode, the script must be run with the -IWantToForwardEmailFromJunkEmailFolderToKasperskyLab parameter. This setting switches the script to active mode. When you attempt to run the script without this parameter, the script cannot run and the text of the program exception is displayed in Windows PowerShell console.

You can specify the following parameters as the input parameters for executing the script:

  • workFolder – path to the folder where the script is located. By default, it is the path to the current folder. This parameter makes it possible to execute the script in normal mode.

    Example of the script executed in normal mode:

    .\spamForwarder.ps1 –workFolder c:\temp\spamForwarder -IWantToForwardEmailFromJunkEmailFolderToKasperskyLab

  • grantPermissions – this parameter makes it possible to execute the script in permission assignment mode.

    Example of script execution in permission assignment mode:

    .\spamForwarder.ps1 –grantPermissions -IWantToForwardEmailFromJunkEmailFolderToKasperskyLab

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.