Error using "Block Sender Transport Rule" in Microsoft Email Security Extension

Hi, we are using the “Microsoft Office365 Email Security” plugin and attempting to use the “Block Sender Transport Rule” action. It is throwing a PowerShell error stating the “Get-TransportRule” cmdlet can’t be found. Job logs below:

Connection was successful.
Attempting to block: obfuscated@domain.com
In Transport Rule: InsightConnect Security Block List
e[33;1mWARNING: attempt 0 failed for Get-TransportRule $RuleName -ErrorAction SilentlyContinue | Select-Object -ExpandProperty "FromAddressContainsWords" -ErrorAction SilentlyContinuee[0m
e[33;1mWARNING: System.Management.Automation.CommandNotFoundException: The term 'Get-TransportRule' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
   at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
   at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)
   at System.Management.Automation.ScriptBlock.InvokeUsingCmdlet(Cmdlet contextCmdlet, Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Object[] args)
   at Microsoft.PowerShell.Commands.InvokeExpressionCommand.ProcessRecord()
   at System.Management.Automation.CommandProcessor.ProcessRecord()e[0m

What version of the plugin are you using? There have been a few updates in version 4 to update the powershell module version for Exchange Online that the plugin uses and may help with your issue.

Latest available which is v4.0.2

Ok, I was not able to replicate this issue in our environment with the same version. Are any of the other actions working? Its possible there is something else going on. It would probably be best to submit a support ticket so we can take a closer look at this.