共用方式為


Get-SCSMDiscovery

從 Service Manager 取得探索資訊。

語法

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

Description

Get-SCSMDiscovery Cmdlet 會從 Service Manager 擷取探索資訊。

範例

範例 1:取得 Service Manager 探索

PS C:\>Get-SCSMDiscovery
Enabled  Name                           Description
-------  ----                           -----------
true     ...DiscoverManagementGroupC... Discovers the relationship for the Management Group to contain the Gateway Management Server Watcher Group
true     ...OpsMgrDBWatcher.Discovery
true     ...PopulateRootManagementSe... Populates this group with the Root Management Server.
true     ...PopulateCollectionManage... Populates this group with all Collection Management Servers.
true     ...DiscoveryHealthServiceCo... Discovers the primary relationships and failover relationships for an agent that is configured for AD integration.
true     ...DiscoverManagementGroupC...
true     ...DiscoverWindowsClientCom... Discovers Windows client computers
true     ...DiscoverWindowsOSProperties Discovers properties on the Operating System class
true     ...PopulateAllComputersGroup   Populates the All Computers Group.
true     ...DiscoverIsVirtualMachine...
true     ...DiscoverManagementGroupC... Discovers the relationship for the Management Group to contain the Root Management Server.
true     ...DiscoverWindowsComputerP... Discovers properties on the Windows computer class
true     ...Agent.PatchDiscovery        This script runs on HealthService instances and finds a list of Operation Manager 2007 Patches that are current...
true     ...DiscoverWindowsProductType  Discovers what type of windows computer the System Center Management service is installed on
true     ...PopulateManagementServer... Populates this group with all Management Servers -- Root, Collection, Gateway.
true     ...DiscoverIsVirtualMachine...
true     ...AgentManagementServer.Di... Discovers the agents that run on as a management server for some management group.
true     InstanceGroup_dbbcf4ea8ff24...
true     WorkItemGroup.21169a7e4a784...
true     ...PopulateSCAgentlessManag... Populates this group with Managed Computer objects that are being monitored remotely.
true     ...SCManagedComputerPropert... Discovers properties on the System Center Managed Computer object.
true     ...PopulateGatewayManagemen... Populates this group with all Gateway Management Servers.
true     ...DiscoverManagementGroupC... Discovers the relationship for the Management Group to contain Collection Management Server Watcher Group
true     ...DiscoverLogicalProcessors
true     ...DiscoverWindowsServerDCC... Discovers Windows Server domain controllers
true     ...DiscoverADManagedComputer   Discovers and creates Agent Relationship Settings objects. This object is used in conjunction with Active Direc...
true     ...PopulateSCAgentManagedCo... Populates this group with Managed Computer objects that have a Health Service installed.
true     ...DiscoverHealthServicePro... Discovers the properties of a management service
true     ...DiscoverOpsMgrDBWatchers...
true     ...PopulateManagedComputerC... Discover the relationship for the grouping client Management Service Watchers.
true     ...DiscoverWindowsServerCom... Discovers Windows Server computers
true     ...DiscoverManagementGroupC... Discover the relationship for the Management Group to contain Agent Watcher Group
true     ...DiscoverManagementGroupC... (Deprecated)Discover the relationship for the Management Group to contain Health Service Watcher Group

此命令會擷取 Service Manager 中定義的探索。

範例 2:依名稱取得探索

PS C:\>Get-SCSMDiscovery -Name "*PopulateRootM*"
Enabled  Name                           Description
-------  ----                           -----------
true     ...PopulateRootManagementSe... Populates this group with the Root Management Server.

此指令會擷取名稱符合表達式的探索,PopulateRootM

範例 3:依名稱取得探索,並將其顯示在清單中

PS C:\>Get-SCSMDiscovery -Name "*PopulateRootM*" | Format-List
HasNonCategoryOverride          : False
Enabled                         : true
Target                          : ManagementPackElementUniqueIdentifier=0e7983be-95b9-aed8-ff93-8819e4cefcaa
ConfirmDelivery                 : False
Remotable                       : True
Priority                        : Normal
Category                        : Discovery
DataSource                      : DiscoveryDataSource
DiscoveryClassCollection        : {}
DiscoveryRelationshipCollection : {}
XmlTag                          : Discovery
ManagementGroup                 : psimp2
ManagementGroupId               : 048d4708-ede4-5aed-1317-81d1b0d0b395
Name                            : Microsoft.SystemCenter.PopulateRootManagementServerComputerGroup
Id                              : 21f2d4e2-6cde-b219-e392-0a25cbea12c6
DisplayName                     : Populate Root Management Server Computer Group
Description                     : Populates this group with the Root Management Server.
LanguageCode                    : ENU
Comment                         :
Status                          : Unchanged
LastModified                    : 12/2/2010 12:20:38 AM
TimeAdded                       : 12/2/2010 12:20:38 AM

此命令會擷取名稱符合 PopulateRootM 的探索,然後顯示格式化為清單的結果。

參數

-ComputerName

指定要建立連線的電腦。 計算機必須執行 System Center 資料存取服務。 預設值是目前管理群組連線的計算機。

有效格式包括 NetBIOS 名稱、IP 位址或完整功能變數名稱 (FQDN)。 若要指定本機計算機,請輸入計算機名稱 「localhost」或點 (.)。

類型:System.String[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Credential

指定管理群組連接執行所在的用戶帳戶。 如果指定伺服器,帳戶必須能夠存取 ComputerName 參數中指定的伺服器。 預設值為目前的使用者。

您可以輸入由 Get-Credential Cmdlet 所傳回 PSCredential 物件。

類型:System.Management.Automation.PSCredential
Position:Named
預設值:Current user context
必要:False
接受管線輸入:False
接受萬用字元:False

-DisplayName

指定要擷取之探索對象的顯示名稱。

類型:System.String[]
Position:1
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:True

-Id

指定要擷取之探索對象的標識碼。 這可能是 GUID 或將轉換成 GUID 的字串。

類型:System.Guid[]
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ManagementPack

指定要擷取之探索物件的一或多個管理元件。

您可以輸入 Get-SCManagementPack Cmdlet 所傳回的 ManagementPack 物件。

類型:Microsoft.EnterpriseManagement.Configuration.ManagementPack[]
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Name

指定要擷取的探索物件名稱。

類型:System.String[]
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:True

-SCSession

指定與管理伺服器的連線。 預設值為目前的管理群組連線。

您可以輸入由 Get-SCManagementGroupConnection Cmdlet 所傳回的管理群組連接物件。

類型:Microsoft.SystemCenter.Core.Connection.Connection[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Target

指定管理元件,其中包含探索的目標類別。

類型:Microsoft.EnterpriseManagement.Configuration.ManagementPackClass[]
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

Microsoft.EnterpriseManagement.Configuration.ManagementPack

您可以使用管線將管理元件物件傳送至 Get-SCSMDiscovery Cmdlet 的 ManagementPack 參數。

System.String

您可以使用管線將探索名稱傳送至 Get-SCSMDiscovery Cmdlet 的 Name 參數。

System.Guid

您可以使用管線將探索物件的 GUID 傳送至 Get-SCSMDiscovery Cmdlet 的 Id 參數。

Microsoft.EnterpriseManagement.Configuration.ManagementPackClass

您可以使用管線將管理元件傳送至 Get-SCSMDiscovery Cmdlet 的 Target 參數。

輸出

Microsoft.EnterpriseManagement.Configuration.ManagementPackDiscovery

此 Cmdlet 會產生探索物件。