Get-SCSMView

Service Manager에 정의된 뷰를 검색합니다.

Syntax

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

Description

Get-SCSMView cmdlet은 Service Manager 정의된 뷰를 검색합니다.

예제

예제 1: 처음 세 개의 정의된 뷰 표시

PS C:\>Get-SCSMView | Select-Object -First 3
Name                                                                          Description
----                                                                          -----------
System.WorkItem.Incident.Queue.Tier2.Unassigned.View                          Lists tier 2 open unassigned incidents
AllSoftwareUpdatesView                                                        Lists all software updates
ChangeManagement.Views.ChangeRequestsCancelled                                Lists all canceled change requests

이 명령은 모든 뷰를 검색합니다. 명령은 Select-Object cmdlet을 사용하여 Service Manager 정의된 처음 세 개의 뷰만 반환합니다.

예제 2: View 개체 가져오기

PS C:\>Get-SCSMView -Name "System.WorkItem.Incident.Queue.Tier2.Unassigned.View"
Name                                                                          Description
----                                                                          -----------
System.WorkItem.Incident.Queue.Tier2.Unassigned.View                          Lists tier 2 open unassigned incidents

이 명령은 View 개체를 검색합니다.

예제 3: 보기에 대한 관리 팩 가져오기

PS C:\>$View = Get-SCSMView -Name "System.WorkItem.Incident.Queue.Tier2.Unassigned.View"
PS C:\> $View.GetManagementPack()
Sealed   Name                                 DisplayName

------   ----                                 -----------

False    ServiceManager.IncidentManagement.Co Service Manager Incident Management

         nfiguration                          Configuration Library

첫 번째 명령은 View 개체를 검색한 다음 $View 변수에 저장합니다.

두 번째 명령은 View 개체가 정의된 관리 팩을 검색합니다.

매개 변수

-ComputerName

System Center Data Access 서비스를 실행 중인 컴퓨터의 이름을 지정합니다. Credential 매개 변수에 지정된 사용자 계정에는 지정된 컴퓨터에 대한 액세스 권한이 있어야 합니다.

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

-Credential

이 cmdlet이 System Center Data Access 서비스가 실행되는 서버에 연결하는 데 사용하는 자격 증명을 지정합니다. 지정된 사용자 계정에는 해당 서버에 대한 액세스 권한이 있어야 합니다.

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

-DisplayName

검색할 View 개체의 표시 이름을 지정합니다.

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

-Id

검색할 View 개체의 ID(GUID)를 지정합니다.

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

-Name

검색할 View 개체의 이름을 지정합니다.

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

-SCSession

Service Manager 관리 서버에 대한 세션을 나타내는 개체를 지정합니다.

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

입력

System.String

이름을 DisplayName 매개 변수로 파이프할 수 있습니다.

System.Guid

GUID를 ID 매개 변수로 파이프할 수 있습니다.

출력

Microsoft.EnterpriseManagement.Configuration.ManagementPackView

이 cmdlet은 뷰 개체를 반환합니다.