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
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.
Type: | System.String[] |
Position: | 0 |
Default value: | None |
Required: | True |
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: | System.String[] |
Position: | Named |
Default value: | Localhost |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | 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: | System.Management.Automation.PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCSession
An object that represents the session to a Service Manager management server.
Type: | Microsoft.SystemCenter.Core.Connection.Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | 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.