CmdID

CmdID / PowerShell / Cmdlets / New

New-SweepRule

Use the New-SweepRule cmdlet to create Sweep rules in mailboxes. Exchange PowerShell reference

From the Exchange PowerShell reference 15 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

15 in the Exchange PowerShell reference
-NameThe Name parameter specifies the name of the Sweep rule.
-ProviderThe Provider parameter specifies the provider for the Sweep rule.
-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.
-DestinationFolderThe DestinationFolder parameter specifies an action for the Sweep rule that moves messages to the specified folder.
-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.
-EnabledThe Enabled parameter specifies whether the Sweep rule is enabled or disabled.
-ExceptIfFlaggedThe ExceptIfFlagged parameter specifies an exception for the Sweep rule that looks messages with a message flag applied.
-ExceptIfPinnedThe PinMessage parameter specifies an exception for the Sweep rule that looks for pinned messages.
-KeepForDaysThe KeepForDays parameter specifies an action for the Sweep rule that specifies the number of days to keep messages that match the conditions of the rule.
-KeepLatestThe KeepLatest parameter specifies an action for the Sweep rule that specifies the number of messages to keep that match the conditions of the rule.
-MailboxThe Mailbox parameter specifies the mailbox where you want to create the Sweep rule.
-SenderThe Sender parameter specifies a condition for the Sweep rule that looks for the specified sender in messages.
-SourceFolderThe SourceFolder parameter specifies a condition for the Sweep rule that looks for messages in the specified folder.
-SystemCategoryThe SystemCategory parameter specifies a condition for the sweep rule that looks for messages with the specified system category.
-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.