Get-SCDiscovery
Retrieves information about the configured discoveries.
Syntax
Empty (Default)
Get-SCDiscovery
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
FromDiscoveryDisplayName
Get-SCDiscovery
[-DisplayName] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
FromDiscoveryId
Get-SCDiscovery
[-Id] <Guid[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
FromManagementPack
Get-SCDiscovery
[-ManagementPack] <ManagementPack[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
FromDiscoveryName
Get-SCDiscovery
[-Name] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
FromManagementPackClass
Get-SCDiscovery
[-Target] <ManagementPackClass[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
The Get-SCDiscovery cmdlet in System Center Operations Manager retrieves information about the configured discoveries. This command can also be executed with Get-SCOMDiscovery
.
By default, this cmdlet uses the active persistent connection to a management group. Use the SCSession parameter to specify a different persistent connection. You can create a temporary connection to a management group by using the ComputerName and Credential parameters. For more information, type Get-Help about_OpsMgr_Connections
.
Examples
1: Obtain all discoveries based on display name
PS C:\>Get-SCDiscovery -DisplayName "Discover Windows Server Computers"
Gets a specific discovery using its display name.
2: Obtain all discoveries located in a management pack
PS C:\>$ManagementPack = Get-SCManagementPack -DisplayName "Operations Manager Internal Library"
Get-SCDiscovery -ManagementPack $ManagementPack
Gets all discoveries within a System Center Operations Manager Management Pack.
3: Obtain discovery details using ID
PS C:\>Get-SCDiscovery -Id 5a055755-71c4-962f-e4b7-b3dc0c4fdf2b
Gets a specific discovery using its ID. For more than one ID, you can separate the items with a comma.
4: Obtain all discoveries associated with a class
PS C:\>Get-SCOMClass -DisplayName 'Linux Computer' | Get-SCDiscovery
Gets all discoveries associated with the Linux Computer class.
5: Obtain all discoveries based on name
PS C:\>Get-SCDiscovery -Name 'Microsoft.SystemCenter.DiscoverWindowsComputerProperties'
Gets all discoveries associated based on name.
Parameters
-ComputerName
The Get-SCDiscovery cmdlet in System Center Operations Manager retrieves information about the configured discoveries. This command can also be executed with Get-SCOMDiscovery
.
By default, this cmdlet uses the active persistent connection to a management group. Use the SCSession parameter to specify a different persistent connection. You can create a temporary connection to a management group by using the ComputerName and Credential parameters. For more information, type Get-Help about_OpsMgr_Connections
.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Credential
The Get-SCDiscovery cmdlet in System Center Operations Manager retrieves information about the configured discoveries. This command can also be executed with Get-SCOMDiscovery
.
By default, this cmdlet uses the active persistent connection to a management group. Use the SCSession parameter to specify a different persistent connection. You can create a temporary connection to a management group by using the ComputerName and Credential parameters. For more information, type Get-Help about_OpsMgr_Connections
.
Parameter properties
Type: | PSCredential |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DisplayName
The Get-SCDiscovery cmdlet in System Center Operations Manager retrieves information about the configured discoveries. This command can also be executed with Get-SCOMDiscovery
.
By default, this cmdlet uses the active persistent connection to a management group. Use the SCSession parameter to specify a different persistent connection. You can create a temporary connection to a management group by using the ComputerName and Credential parameters. For more information, type Get-Help about_OpsMgr_Connections
.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | True |
DontShow: | False |
Parameter sets
FromDiscoveryDisplayName
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Id
The Get-SCDiscovery cmdlet in System Center Operations Manager retrieves information about the configured discoveries. This command can also be executed with Get-SCOMDiscovery
.
By default, this cmdlet uses the active persistent connection to a management group. Use the SCSession parameter to specify a different persistent connection. You can create a temporary connection to a management group by using the ComputerName and Credential parameters. For more information, type Get-Help about_OpsMgr_Connections
.
Parameter properties
Type: | Guid[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
FromDiscoveryId
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ManagementPack
The Get-SCDiscovery cmdlet in System Center Operations Manager retrieves information about the configured discoveries. This command can also be executed with Get-SCOMDiscovery
.
By default, this cmdlet uses the active persistent connection to a management group. Use the SCSession parameter to specify a different persistent connection. You can create a temporary connection to a management group by using the ComputerName and Credential parameters. For more information, type Get-Help about_OpsMgr_Connections
.
Parameter properties
Type: | ManagementPack[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
FromManagementPack
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
The Get-SCDiscovery cmdlet in System Center Operations Manager retrieves information about the configured discoveries. This command can also be executed with Get-SCOMDiscovery
.
By default, this cmdlet uses the active persistent connection to a management group. Use the SCSession parameter to specify a different persistent connection. You can create a temporary connection to a management group by using the ComputerName and Credential parameters. For more information, type Get-Help about_OpsMgr_Connections
.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | True |
DontShow: | False |
Parameter sets
FromDiscoveryName
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SCSession
The Get-SCDiscovery cmdlet in System Center Operations Manager retrieves information about the configured discoveries. This command can also be executed with Get-SCOMDiscovery
.
By default, this cmdlet uses the active persistent connection to a management group. Use the SCSession parameter to specify a different persistent connection. You can create a temporary connection to a management group by using the ComputerName and Credential parameters. For more information, type Get-Help about_OpsMgr_Connections
.
Parameter properties
Type: | Connection[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Target
The Get-SCDiscovery cmdlet in System Center Operations Manager retrieves information about the configured discoveries. This command can also be executed with Get-SCOMDiscovery
.
By default, this cmdlet uses the active persistent connection to a management group. Use the SCSession parameter to specify a different persistent connection. You can create a temporary connection to a management group by using the ComputerName and Credential parameters. For more information, type Get-Help about_OpsMgr_Connections
.
Parameter properties
Type: | ManagementPackClass[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
FromManagementPackClass
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.