Get-SCSMDiscovery

Ottiene le informazioni di individuazione da Service Manager.

Sintassi

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>]

Descrizione

Il cmdlet Get-SCSMDiscovery recupera le informazioni di individuazione da Service Manager.

Esempio

Esempio 1: Ottenere individuazioni 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

Questo comando recupera le individuazioni definite in Service Manager.

Esempio 2: Ottenere individuazioni in base al nome

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

Questo comando recupera le individuazioni in cui il nome corrisponde all'espressione PopulateRootM.

Esempio 3: Ottenere individuazioni in base al nome e visualizzarle in un elenco

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

Questo comando recupera le individuazioni in cui il nome corrisponde a PopulateRootM e quindi visualizza i risultati formattati come elenco.

Parametri

-ComputerName

Specifica un computer con cui stabilire una connessione. Nel computer deve essere in esecuzione il servizio System Center Data Access. Il valore predefinito è il computer per la connessione del gruppo di gestione corrente.

Formati validi includono un nome NetBIOS, un indirizzo IP o un nome di dominio completo (FQDN). Per specificare il computer locale, digitare il nome del computer, "localhost" o un punto (.).

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

-Credential

Specifica un account utente in cui viene eseguita la connessione al gruppo di gestione. L'account deve avere accesso al server specificato nel parametro ComputerName , se il server è specificato. L'impostazione predefinita è l'utente corrente.

È possibile immettere un oggetto PSCredential restituito dal cmdlet Get-Credential .

Type:System.Management.Automation.PSCredential
Position:Named
Default value:Current user context
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

Specifica il nome visualizzato dell'oggetto di individuazione da recuperare.

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

-Id

Specifica l'ID dell'oggetto di individuazione da recuperare. Può trattarsi di un GUID o di una stringa che verrà convertita in un GUID.

Type:System.Guid[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ManagementPack

Specifica uno o più Management Pack contenenti gli oggetti di rilevamento da recuperare.

È possibile immettere un oggetto ManagementPack restituito dal cmdlet Get-SCManagementPack .

Type:Microsoft.EnterpriseManagement.Configuration.ManagementPack[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifica il nome di un oggetto di individuazione da recuperare.

Type:System.String[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:True

-SCSession

Specifica una connessione a un server di gestione. Il valore predefinito è la connessione al gruppo di gestione corrente.

È possibile immettere un oggetto connessione del gruppo di gestione restituito dal cmdlet Get-SCManagementGroupConnection .

Type:Microsoft.SystemCenter.Core.Connection.Connection[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Target

Specifica il Management Pack che contiene le classi di destinazione dell'individuazione.

Type:Microsoft.EnterpriseManagement.Configuration.ManagementPackClass[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Input

Microsoft.EnterpriseManagement.Configuration.ManagementPack

È possibile inviare tramite pipe un oggetto Management Pack al parametro ManagementPack del cmdlet Get-SCSMDiscovery .

System.String

È possibile inviare tramite pipe un nome di individuazione al parametro Name del cmdlet Get-SCSMDiscovery .

System.Guid

È possibile inviare tramite pipe un GUID di un oggetto di individuazione al parametro Id del cmdlet Get-SCSMDiscovery .

Microsoft.EnterpriseManagement.Configuration.ManagementPackClass

È possibile inviare tramite pipe un Management Pack al parametro Target del cmdlet Get-SCSMDiscovery .

Output

Microsoft.EnterpriseManagement.Configuration.ManagementPackDiscovery

Questo cmdlet genera un oggetto di individuazione.