Get-SCOMRecovery

Gets a list of recoveries in Operations Manager.

Syntax

Get-SCOMRecovery [-DisplayName] <String[]> [-ComputerName <String[]>] [-Credential <PSCredential>]
 [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMRecovery [-ComputerName <String[]>] [-Credential <PSCredential>] -Id <Guid[]>
 [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMRecovery [-ComputerName <String[]>] [-Credential <PSCredential>] -ManagementPack <ManagementPack[]>
 [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMRecovery [-ComputerName <String[]>] [-Credential <PSCredential>] -Monitor <ManagementPackMonitor[]>
 [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMRecovery [-ComputerName <String[]>] [-Credential <PSCredential>] -Name <String[]>
 [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMRecovery [-ComputerName <String[]>] [-Credential <PSCredential>] [-SCSession <Connection[]>]
 -Target <ManagementPackClass[]> [<CommonParameters>]

Description

The Get-SCOMRecovery cmdlet gets a list of recoveries in System Center 2016 - Operations Manager.

Examples

Example 1: Retrieve all recoveries by name

PS C:\>Get-SCOMRecovery -Name Microsoft.SystemCenter.HealthService.Recovery.*

This command retrieves all recoveries related to the Health Service.

Parameters

-ComputerName

Specifies an array of names of computers. The cmdlet establishes temporary connections with management groups for these computers. You can use NetBIOS names, IP addresses, or fully qualified domain names (FQDNs). To specify the local computer, type the computer name, localhost, or a dot (.).

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Credential

Specifies a PSCredential object for the management group connection. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type "Get-Help Get-Credential".If you specify a computer in the ComputerName parameter, use an account that has access to that computer. The default is the current user.

Type:PSCredential
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisplayName

Specifies the display name of an object. Values of the DisplayName parameter may vary depending on which localized management packs a user imports into the management group and the locale of the user who is running Windows PowerShell.

Type:String[]
Required:True
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:True
-Id

Specifies an array of GUIDs.

Type:Guid[]
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ManagementPack

Specifies an array of management pack. To obtain a management pack object, use the Get-SCManagementPack cmdlet.

Type:ManagementPack[]
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Monitor

Specifies an array of monitors.

Type:ManagementPackMonitor[]
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies an array of names

Type:String[]
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:True
-SCSession

Specifies an array of Connection objects. To obtain a Connection object, use the Get-SCManagementGroupConnection cmdlet.

Type:Connection[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Target

Specifies an array of target classes to use to limit the results of this cmdlet. To obtain a management pack class object, use the Get-SCClass cmdlet.

Type:ManagementPackClass[]
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False