Get-Discovery

Get-Discovery

Returns available discoveries.

Syntax

Parameter Set: FromCriteria
Get-Discovery [[-Criteria] <String> ] [[-Path] <String[]> ] [ <CommonParameters>]

Parameter Set: FromId
Get-Discovery [-Id] <Guid> [[-Path] <String[]> ] [ <CommonParameters>]

Parameter Set: FromMonitoringObject
Get-Discovery [-MonitoringObject] <MonitoringObject> [[-Criteria] <String> ] [ <CommonParameters>]

Detailed Description

Return the available discoveries. The collection of discoveries returned will vary depending on which management packs have been installed.

Parameters

-Criteria<String>

Specifies criteria using syntax designed for use with System Center Operations Manager. Only diagnostics that meet the specified criteria will be retrieved. To learn about the syntax, consult the SDK topic, "Criteria Expression Syntax", in the System Center Operations Manager 2007 SDK. You can find the SDK by search Microsoft Developer Network (MSDN) online at https://msdn.microsoft.com.

Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Id<Guid>

Specifies the GUID of the discovery to retrieve.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-MonitoringObject<MonitoringObject>

Specifies the monitoring object. If you use this parameter, only discoveries associated with the specified monitoring object will be retrieved.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Path<String[]>

Specifies the path or set of paths for which to retrieve discoveries. To enter multiple values, separate them by using commas.

Aliases

none

Required?

false

Position?

4

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Notes

  • For more information, type "Get-Help Get-Discovery -detailed". For technical information, type "Get-Help Get-Discovery -full".
    When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

Examples

-------------- EXAMPLE 1 --------------

This command lists the display names of all discoveries that are not enabled.

C:\PS>Get-Discovery | where {$_.Enabled -eq 'false'} | sort | ft DisplayName

-------------- EXAMPLE 2 --------------

This example returns a list of all discoveries that have non-category overrides defined.

C:\PS>Get-Discovery -Criteria:"HasNonCategoryOverride=1" | ft DisplayName

Get-Override

Get-Recovery

Get-Task

Start-Discovery