Get-SCSMGroup

Service Manager 그룹을 가져옵니다.

Syntax

Get-SCSMGroup
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCSMGroup
   [-DisplayName] <String[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCSMGroup
   [-Id] <Guid[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]

Description

Get-SCSMGroup cmdlet은 Service Manager 그룹을 검색합니다. 이 cmdlet의 출력은 New-SCSMUserRole cmdlet과 같은 다른 cmdlet에서 사용할 수 있습니다.

예제

예제 1: Service Manager 그룹 가져오기

PS C:\>Get-SCSMGroup
Id                                   FullName
--                                   --------
3c8ac4f3-475e-44dd-4163-8a97af363705 Microsoft.SystemCenter.AllComputersGroup
04bca169-5094-4b85-8704-067f333aa830 Microsoft.SystemCenter.CollectionManagementServerComputersGroup
95fe7deb-f466-ca83-aa8d-9845c386cd5a Microsoft.SystemCenter.GatewayManagementServerComputersGroup
099bfe0f-fddb-8d5a-67af-a79317eb6e91 Microsoft.SystemCenter.ManagementServerComputersGroup
0e7983be-95b9-aed8-ff93-8819e4cefcaa Microsoft.SystemCenter.RootManagementServerComputersGroup
3c1ef0a3-b773-11c8-b150-c4e47e5b7d91 Microsoft.SystemCenter.AgentlessManagedComputerGroup
e394c529-dfca-bdb4-5a86-d46078622200 Microsoft.SystemCenter.AgentManagedComputerGroup
e929bd61-1615-ba70-62b2-9fd5eee8aa09 Microsoft.SystemCenter.ManagedComputerClientHealthServiceWatcherGroup
93cb6af4-3e3d-53f6-06a7-04a469197a9c Microsoft.SystemCenter.OpsMgrDBWatchersGroup
a528b843-301e-4e61-6679-104243bbdb6b InstanceGroup_dbbcf4ea8ff241839b6154026698ceb2

이 명령은 Service Manager 그룹을 검색합니다.

예제 2: 그룹 가져오기 및 테이블에 세부 정보 표시

PS C:\>Get-SCSMGroup |Format-Table fullname,displayname
FullName                                                                      DisplayName
--------                                                                      -----------
Microsoft.SystemCenter.AllComputersGroup                                      All Windows Computers
Microsoft.SystemCenter.CollectionManagementServerComputersGroup               Collection Management Server Computer Group
Microsoft.SystemCenter.GatewayManagementServerComputersGroup                  Gateway Management Server Computer Group
Microsoft.SystemCenter.ManagementServerComputersGroup                         Management Server Computer Group
Microsoft.SystemCenter.RootManagementServerComputersGroup                     Root Management Server Computer Group
Microsoft.SystemCenter.AgentlessManagedComputerGroup                          Agentless Managed Computer Group
Microsoft.SystemCenter.AgentManagedComputerGroup                              Agent Managed Computer Group
Microsoft.SystemCenter.ManagedComputerClientHealthServiceWatcherGroup         Managed Computer Client Management Service Watcher Group
Microsoft.SystemCenter.OpsMgrDBWatchersGroup                                  System Center Operations Manager Operational Database Watcher Group
InstanceGroup_dbbcf4ea8ff241839b6154026698ceb2                                mygroup

이 명령은 그룹을 검색한 다음 FullNameDisplayName 속성을 표시합니다.

예제 3: 그룹의 세부 정보 가져오기

PS C:\>Get-SCSMGroup -DisplayName "All Windows Computers"
Id                                   FullName
--                                   --------
3c8ac4f3-475e-44dd-4163-8a97af363705 Microsoft.SystemCenter.AllComputersGroup

이 명령은 모든 Windows 컴퓨터 그룹을 검색합니다.

예제 4: 그룹 가져오기 및 해당 속성 표시

PS C:\>Get-SCSMGroup -DisplayName "All Windows Computers"|Format-List
Name                                         :
Path                                         :
DisplayName                                  : All Windows Computers
FullName                                     : Microsoft.SystemCenter.AllComputersGroup
ManagementPackClassIds                       : {3c8ac4f3-475e-44dd-4163-8a97af363705}
LeastDerivedNonAbstractManagementPackClassId : 3c8ac4f3-475e-44dd-4163-8a97af363705
TimeAdded                                    : 12/2/2010 12:19:56 AM
LastModifiedBy                               :
Values                                       : {System.ConfigItem.ObjectStatusEnum.Active, (null), (null), All Windows Computers}
LastModified                                 : 12/2/2010 12:19:56 AM
IsNew                                        : False
HasChanges                                   : False
Id                                           : 3c8ac4f3-475e-44dd-4163-8a97af363705
ManagementGroup                              : psimp2
ManagementGroupId                            : 048d4708-ede4-5aed-1317-81d1b0d0b395

이 명령은 모든 Windows 컴퓨터 그룹을 검색한 다음 모든 속성을 표시합니다.

매개 변수

-ComputerName

연결을 설정할 컴퓨터를 지정합니다. 이 컴퓨터는 System Center Data Access 서비스를 실행해야 합니다. 기본값은 현재 관리 그룹 연결용 컴퓨터입니다.

유효한 형식에는 NetBIOS 이름, IP 주소 또는 FQDN(정규화된 도메인 이름)이 포함됩니다. 로컬 컴퓨터를 지정하려면 컴퓨터 이름, "localhost" 또는 점(.)을 입력하세요.

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

-Credential

관리 그룹 연결을 실행할 사용자 계정을 지정합니다. 서버가 지정된 경우 ComputerName 매개 변수에 지정된 서버에 대한 액세스 권한이 계정에 있어야 합니다. 기본값은 현재 사용자입니다.

Get-Credential cmdlet에서 반환되는 PSCredential 개체를 입력할 수 있습니다.

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

-DisplayName

검색할 그룹의 표시 이름을 지정합니다.

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

-Id

검색할 그룹의 ID를 지정합니다. GUID 또는 GUID로 변환되는 문자열일 수 있습니다.

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

-SCSession

관리 서버에 대한 연결을 지정합니다. 기본값은 현재 관리 그룹 연결입니다.

Get-SCManagementGroupConnection cmdlet에서 반환되는 관리 그룹 연결 개체를 입력할 수 있습니다.

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

입력

System.Guid

그룹 GUID를 Get-SCSMGroup cmdlet의 ID 매개 변수로 파이프할 수 있습니다.

System.String

그룹의 이름을 Get-SCSMGroup cmdlet의 DisplayName 매개 변수로 파이프할 수 있습니다.

출력

Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject

이 cmdlet의 출력은 그룹 개체입니다.