Remove-SCSMAllowListClass

Service Manager에서 동기화하는 동안 Operations Manager CI 커넥터에서 사용되는 클래스의 허용 목록에서 지정된 클래스를 제거합니다.

Syntax

Remove-SCSMAllowListClass
      [-ClassName] <String[]>
      [-SCSession <Connection[]>]
      [-ComputerName <String[]>]
      [-Credential <PSCredential>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Remove-SCSMAllowListClass cmdlet은 Service Manager 동기화 중에 Operations Manager CI Connector가 사용하는 클래스 허용 목록에서 지정된 클래스를 제거합니다. 허용 목록에 클래스 이름이 없으면 cmdlet은 인수 예외를 반환합니다.

예제

예제 1: 허용 목록에서 클래스 제거

PS C:\>Remove-SCSMAllowListClass "System.SoftwareItem"
PS C:\> Get-SCSMAllowList
name                                                        mp
----                                                        --
System.Service                                              System.Library
System.Database                                             System.Library
Microsoft.Windows.ApplicationComponent                      Microsoft.Windows.Library
Microsoft.Windows.ComputerRole                              Microsoft.Windows.Library
System.Computer                                             System.Library
System.OperatingSystem                                      System.Library
Microsoft.Windows.LogicalDevice                             Microsoft.Windows.Library
System.SoftwareInstallation                                 System.Library
System.WebSite                                              System.Library

첫 번째 명령은 허용 목록에서 SoftwareItem 클래스를 제거합니다.

두 번째 명령은 허용 목록을 검색하여 클래스가 제거되었는지 확인합니다.

예제 2: 목록에 없는 항목을 제거하려고 시도합니다.

PS C:\>Remove-SCSMAllowListClass "System.SoftwareItem"
Remove-SCSMAllowListClass : Class System.SoftwareItem cannot be removed because it is not in the allow list.
At line:1 char:26
+ Remove-SCSMAllowListClass <<<<  "System.SoftwareItem"
    + CategoryInfo          : InvalidData: (System.SoftwareItem:String) [Remove-SCSMAllowListClass], ArgumentException
    + FullyQualifiedErrorId : Invalid allow list XML,Microsoft.EnterpriseManagement.SMCmdlets.RemoveSCSMAllowListClass

이 명령은 목록에 없는 클래스를 제거하려고 시도합니다.

매개 변수

-ClassName

이 cmdlet이 Operations Manager CI Connector의 허용 목록에서 제거하는 클래스의 이름을 지정합니다. 각 클래스 이름은 허용 목록에 있어야 하며 ClassType> 관리 팩 요소의 ID 속성에 <해당해야 합니다.

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

-ComputerName

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

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

-Confirm

cmdlet을 실행하기 전에 확인을 요청합니다.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:False
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

-SCSession

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

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

-WhatIf

cmdlet을 실행할 경우 발생하는 일을 표시합니다. cmdlet은 실행되지 않습니다.

Type:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

입력

None.

이 cmdlet에 입력을 파이프할 수 없습니다.

출력

None.

이 cmdlet은 어떠한 출력도 생성하지 않습니다.