Set-InboxRule

1st Microsoft Example

Set-InboxRule -Identity <InboxRuleIdParameter> 
[-AlwaysDeleteOutlookRulesBlob <SwitchParameter>] 
[-ApplyCategory <MultiValuedProperty>] 
[-BodyContainsWords <MultiValuedProperty>] 
[-Confirm [<SwitchParameter>]] 
[-CopyToFolder <MailboxFolderIdParameter>] 
[-DeleteMessage <$true | $false>] 
[-DomainController <Fqdn>] 
[-ExceptIfBodyContainsWords <MultiValuedProperty>] 
[-ExceptIfFlaggedForAction <String>] 
[-ExceptIfFrom <RecipientIdParameter[]>] 
[-ExceptIfFromAddressContainsWords <MultiValuedProperty>] 
[-ExceptIfFromSubscription <AggregationSubscriptionIdentity[]>] 
[-ExceptIfHasAttachment <$true | $false>] 
[-ExceptIfHasClassification <MessageClassificationIdParameter[]>] 
[-ExceptIfHeaderContainsWords <MultiValuedProperty>] 
[-ExceptIfMessageTypeMatches <AutomaticReply | AutomaticForward 
| Encrypted | Calendaring | CalendaringResponse | PermissionControlled 
| Voicemail | Signed | ApprovalRequest | ReadReceipt | NonDeliveryReport>] 
[-ExceptIfMyNameInCcBox <$true | $false>] 
[-ExceptIfMyNameInToBox <$true | $false>] 
[-ExceptIfMyNameInToOrCcBox <$true | $false>] 
[-ExceptIfMyNameNotInToBox <$true | $false>] 
[-ExceptIfReceivedAfterDate <ExDateTime>] 
[-ExceptIfReceivedBeforeDate <ExDateTime>] 
[-ExceptIfRecipientAddressContainsWords <MultiValuedProperty>] 
[-ExceptIfSentOnlyToMe <$true | $false>] 
[-ExceptIfSentTo <RecipientIdParameter[]>] 
[-ExceptIfSubjectContainsWords <MultiValuedProperty>] 
[-ExceptIfSubjectOrBodyContainsWords <MultiValuedProperty>] 
[-ExceptIfWithImportance <Low | Normal | High>] 
[-ExceptIfWithinSizeRangeMaximum <ByteQuantifiedSize>] 
[-ExceptIfWithinSizeRangeMinimum <ByteQuantifiedSize>] 
[-ExceptIfWithSensitivity <Normal | Personal | Private | CompanyConfidential>] 
[-FlaggedForAction <String>] 
[-Force <SwitchParameter>] 
[-ForwardAsAttachmentTo <RecipientIdParameter[]>] 
[-ForwardTo <RecipientIdParameter[]>] 
[-From <RecipientIdParameter[]>] 
[-FromAddressContainsWords <MultiValuedProperty>] 
[-FromSubscription <AggregationSubscriptionIdentity[]>] 
[-HasAttachment <$true | $false>] 
[-HasClassification <MessageClassificationIdParameter[]>] 
[-HeaderContainsWords <MultiValuedProperty>] 
[-Mailbox <MailboxIdParameter>] 
[-MarkAsRead <$true | $false>] 
[-MarkImportance <Low | Normal | High>] 
[-MessageTypeMatches <AutomaticReply | AutomaticForward 
| Encrypted | Calendaring | CalendaringResponse | PermissionControlled 
| Voicemail | Signed | ApprovalRequest | ReadReceipt | NonDeliveryReport>] 
[-MoveToFolder <MailboxFolderIdParameter>] 
[-MyNameInCcBox <$true | $false>] 
[-MyNameInToBox <$true | $false>] 
[-MyNameInToOrCcBox <$true | $false>] 
[-MyNameNotInToBox <$true | $false>] 
[-Name <String>] [-Priority <Int32>] 
[-ReceivedAfterDate <ExDateTime>] 
[-ReceivedBeforeDate <ExDateTime>] 
[-RecipientAddressContainsWords <MultiValuedProperty>] 
[-RedirectTo <RecipientIdParameter[]>] 
[-SendTextMessageNotificationTo <MultiValuedProperty>] 
[-SentOnlyToMe <$true | $false>] 
[-SentTo <RecipientIdParameter[]>] 
[-StopProcessingRules <$true | $false>] 
[-SubjectContainsWords <MultiValuedProperty>] 
[-SubjectOrBodyContainsWords <MultiValuedProperty>] 
[-WhatIf [<SwitchParameter>]] 
[-WithImportance <Low | Normal | High>] 
[-WithinSizeRangeMaximum <ByteQuantifiedSize>] 
[-WithinSizeRangeMinimum <ByteQuantifiedSize>] 
[-WithSensitivity <Normal | Personal | Private | CompanyConfidential>] 
[<CommonParameters>]