Reset-SearchCatalog
Resets a search catalog by completely rebuilding its index database.
Syntax
Reset-SearchCatalog
[[-Catalog] <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Reset-SearchCatalog
cmdlet resets a search catalog by completely rebuilding its index database.
Note
You must run this cmdlet from an elevated PowerShell session. Start PowerShell by using the Run as administrator option.
Examples
Example 1: Reset the default catalog.
Reset-SearchCatalog
This command resets the default Windows Search catalog, which is named SystemIndex.
Example 2: Reset a custom catalog.
Reset-SearchCatalog -Catalog Sample01
This command resets the search catalog named Sample01
.
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
The difference between Reset-SearchCatalog
and Update-SearchCatalog -All
is that the former removes any old information from the index before reindexing while the latter doesn't.