Get-SCDiscovery
擷取已設定探索的相關信息。
Syntax
Get-SCDiscovery
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCDiscovery
[-DisplayName] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCDiscovery
[-Id] <Guid[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCDiscovery
[-ManagementPack] <ManagementPack[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCDiscovery
[-Name] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCDiscovery
[-Target] <ManagementPackClass[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
System Center Operations Manager 中的 Get-SCDiscovery Cmdlet 會擷取已設定探索的相關信息。 您也可以使用 Get-SCOMDiscovery
來執行此命令。
根據預設,此 Cmdlet 會使用與管理群組的作用中持續性連線。 使用 SCSession 參數來指定不同的持續性連線。 您可以使用 ComputerName 和 Credential 參數,建立與管理群組的暫時連線。 如需詳細資訊,請鍵入 Get-Help about_OpsMgr_Connections
。
範例
1:根據顯示名稱取得所有探索
PS C:\>Get-SCDiscovery -DisplayName "Discover Windows Server Computers"
使用其顯示名稱取得特定探索。
2:取得位於管理元件中的所有探索
PS C:\>$ManagementPack = Get-SCManagementPack -DisplayName "Operations Manager Internal Library"
Get-SCDiscovery -ManagementPack $ManagementPack
取得 System Center Operations Manager 管理元件內的所有探索。
3:使用標識碼取得探索詳細數據
PS C:\>Get-SCDiscovery -Id 5a055755-71c4-962f-e4b7-b3dc0c4fdf2b
使用其標識碼取得特定探索。 針對多個識別碼,您可以使用逗號分隔專案。
4:取得與類別相關聯的所有探索
PS C:\>Get-SCOMClass -DisplayName 'Linux Computer' | Get-SCDiscovery
取得與Linux電腦類別相關聯的所有探索。
5:根據名稱取得所有探索
PS C:\>Get-SCDiscovery -Name 'Microsoft.SystemCenter.DiscoverWindowsComputerProperties'
根據名稱取得所有相關聯的探索。
參數
-ComputerName
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | True |
-Id
Type: | Guid[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ManagementPack
Type: | ManagementPack[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-SCSession
Type: | Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Target
Type: | ManagementPackClass[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |