We are trying to make a rule where if a message has XXXXX in the subject then move to the Junk Folder.
I have granted my user full access rights to all mailboxes on the server.
I have confirmed I can create the rule with users individually
The issue is that the command works for some users and not for others. Similarily the command is creating multiple copies of the rule for some users and not for others. There does not seem to be any pattern to this at all.
Here is my command
[PS] C:\Windows\system32>get-mailbox -organizationalunit "supernova.local/Active Users" -resultsize unlimited| foreach {
new-inboxrule -name "Spam Move" -mailbox kerry -MoveToFolder "kerry:\Junk E-Mail" -SubjectContainsWords "[Spam:" -StopP
rocessingRules $true -confirm:$false -force }
When you do this for an idividual user. (in this case "Kerry") here is the output.
Pipeline not executed because a pipeline is already executing. Pipelines cannot be executed concurrently.
+ CategoryInfo : OperationStopped: (Microsoft.Power...tHelperRunspace:ExecutionCmdletHelperRunspace) [],
PSInvalidOperationException
+ FullyQualifiedErrorId : RemotePipelineExecutionFailed
Name Enabled Priority RuleIdentity
---- ------- -------- ------------
Spam Move True 1 13037078695330709505
Spam Move True 1 13109136289368637441
Spam Move True 1 13181193883406565377
When done for mulitple users by replacing "Kerry" with $($_.Alias) it only works for some users. Other get double or more copies of the rule, while other users do not get it at all.....
Very strange.
What could I be missing here?