Share via


Add-SCSMAllowListClass

Adds the specified classes to the allow list of classes that is used by the Service Manager Operations Manager CI Connector during synchronization.

Syntax

Default (Default)

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

Description

The Add-SCSMAllowListClass cmdlet adds the specified classes to the allow list of classes that the Service Manager Operations Manager CI Connector uses during synchronization. The specified classes must already be defined in existing management packs.

Examples

Example 1: Add a class to the allow list

PS C:\>Add-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
System.SoftwareItem                                         System.Software.Library

This example adds a class to the allow list. The first cmdlet adds the SoftwareItem class to the allow list. The second cmdlet retrieves the allow list to verify the addition.

Example 2: Add an invalid class name

PS C:\>Add-SCSMAllowListClass -ClassName "Config"
[CODE_Snippit]Add-SCSMAllowListClass[CODE_Snippit]: The management pack class Config could not be found. Did you mean:
System.ConfigItem
System.Search.ProviderConfig
System.Announcement.Config
System.GroomingConfiguration
Microsoft.SystemCenter.ConfigureWorkflowTarget
Microsoft.SystemCenter.ConfigItemGroup
Microsoft.SystemCenter.ConfigurationManager.AICatalog
Microsoft.SystemCenter.ConfigurationManager.CollectionInfo
Microsoft.SystemCenter.ConfigurationManager.DCM_CI
Microsoft.SystemCenter.ConfigurationManager.DCM_NonCompliance_CI
Microsoft.SystemCenter.ConfigurationManager.DeployedComputer
Microsoft.SystemCenter.ConfigurationManager.Package
Microsoft.SystemCenter.ConfigurationManager.Program
System.Notification.ConfigurationSource
System.Notification.SIPConfigurationSource
System.Notification.SMTPConfigurationSource
Microsoft.SystemCenter.LinkingFramework.Configuration.CmdbSyncRuleTarget
System.LinkingFramework.SccmSource
Microsoft.EnterpriseManagement.LinkingFramework.OpsMgrConnector.Config
Microsoft.EnterpriseManagement.LinkingFramework.OpsMgrConnector.OpsMgrCIs
System.InboundEmail.Configuration
Microsoft.SystemCenter.ServiceManager.InboundEmail.Configuration.WorkflowTarget
System.WorkItem.Activity.WorkflowTarget
System.WorkItem.ChangeRequest.WorkflowTarget
Microsoft.SystemCenter.WorkItem.DCMIncident
System.WorkItem.Incident.Wizard.AutomaticChangeIncident
System.WorkItem.Incident.Wizard.DCMIntegration
Microsoft.SystemCenter.ServiceManager.Portal.Links.Configuration
ServiceManager.SoftwareDeployment.SCCM.Configuration
?
At line:1 char:23
+ Add-SCSMAllowListClass <<<<  -ClassName Config
    + CategoryInfo          : InvalidData: (Config:String) [Add-SCSMAllowListClass], ArgumentException
    + FullyQualifiedErrorId : Invalid allow list XML,Microsoft.EnterpriseManagement.SMCmdlets.AddSCSMAllowListClass

This command attempts to add a class to the allow list. However, Config is not a valid value for the ClassName parameter.

Parameters

-ClassName

Specifies the names of the classes to add to the configuration item Operations Manager CI connector allow list. Each class name must correspond to an ID property of an existing <ClassType> management pack element. Separate multiple class names with a comma.

Parameter properties

Type:

System.String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ComputerName

Specifies the name of the computer on which the System Center Data Access service runs. The user account that is specified in the Credential parameter must have access rights to the specified computer.

Parameter properties

Type:

System.String[]

Default value:Localhost
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Credential

Specifies the credentials that this cmdlet uses to connect to the server on which the System Center Data Access service runs. The specified user account must have access rights to that server.

Parameter properties

Type:System.Management.Automation.PSCredential
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SCSession

An object that represents the session to a Service Manager management server.

Parameter properties

Type:

Microsoft.SystemCenter.Core.Connection.Connection[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None.

You cannot pipe input to this cmdlet.

Outputs

None.

This cmdlet does not generate any output.