Reset-SearchRule
Resets a catalog to the default search rules.
Syntax
Reset-SearchRule
[[-Catalog] <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Reset-SearchRule
cmdlet removes all User
rules from a catalog and restores all Default
rules to the working rule set.
Examples
Example 1: Reset search rules
Reset-SearchRule
Confirm
Are you sure you want to perform this action?
Performing the operation "Reset-SearchRule" on target "SystemIndex".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
This command resets the search rules of the default Windows Search catalog after prompting the user for confirmation.
Example 2: Reset search rules without confirmation
Reset-SearchRule -Confirm:$false
This command resets the search rules of the default Windows Search catalog without prompting for confirmation.
Parameters
-Catalog
Specifies the name of the catalog this cmdlet operates on. If omitted, this is the default Windows Search catalog, named SystemIndex.
Type | |
Position |
0 |
Default value |
SystemIndex |
Accept pipeline input |
False |
Accept wildcard characters |
False |
Inputs
None
You can't pipe objects to this cmdlet.
Outputs
None
This cmdlet returns no output.
Notes
To learn more about search rules, see Managing Scope Rules in Microsoft's Windows Search documentation.