Index location cmdlet syntax

The syntax is the same for all three index location backup mode cmdlets. For example:

Set-IndexLocationBackupMode [-EVServerName] <String> [[-IndexRootPath] <String>] [-EVSiteName <String>] [<CommonParameters>]

The following examples show how Set-IndexLocationBackupMode is used to set backup mode on index locations:

In all cases, you must specify the name of the server that owns the index location or site so the cmdlet can find its ID.

If you know the ID of the index location, site or server, you can use the following syntax to set backup mode:

Set-IndexLocationBackupMode [-EntryId <String>] [<CommonParameters>]

For example:

Set-IndexLocationBackupMode -EntryId 1F3C7910CD579234AB8EB207F0ECEBCE91210000EVServer.Domain1.local

This command sets backup mode on the object that has the specified ID. Specify the ID of an index location to set backup mode on that index location. Specify the ID of a server or a site to set backup mode on all its associated index locations.

Clear-IndexLocationBackupMode uses the same syntax to clear backup mode from index locations. Get-IndexLocationBackupMode also uses the same syntax to report current backup mode settings.