Add-SCSMAllowListClass

Adds the specified classes to the allow list of classes for synchronization.

Syntax

Add-SCSMAllowListClass [-ClassName] <String[]> [-ComputerName <String[]>] [-Confirm]
 [-Credential <PSCredential>] [-SCSession <Connection[]>] [-WhatIf] [<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 -ClassName "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

The first command adds the SoftwareItem class to the allow list.

The second command 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="">

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.

Type:String[]
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters: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.

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

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters: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.

Type:PSCredential
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SCSession

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

Type:Connection[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

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

Inputs

None.

You cannot pipe input to this cmdlet.

Outputs

None.

This cmdlet does not generate any output.