Add-SCSMAllowListClass

Add-SCSMAllowListClass

Adds the specified classes to the allow list of classes to be used by the configuration item Operations Manager 2007 connector during synchronization.

Syntax

Parameter Set: Default
Add-SCSMAllowListClass [-ClassName] <String[]> [-ComputerName <String> ] [-Credential <PSCredential> ] [ <CommonParameters>]

Detailed Description

The Add-SCSMAllowListClass cmdlet adds the specified classes to the allow list of classes used by the configuration item Operations Manager 2007 connector during synchronization. The specified classes must already be defined in existing management packs.

Parameters

-ClassName<String[]>

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ComputerName<String>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Credential<PSCredential>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • You cannot pipe input to this cmdlet

Outputs

The output type is the type of the objects that the cmdlet emits.

  • This cmdlet does not generate any output.

Examples

-------------------------- EXAMPLE 1 --------------------------

Description

-----------

These commands add the System.SoftwareItem class to the Operations Manager 2007 connector allow list and then retrieve the allow list to verify that the class has been added.

C:\PS>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

-------------------------- EXAMPLE 2 --------------------------

Description

-----------

This command attempts to add a class that does not exist to the allow list.

C:\PS>Add-SCSMAllowListClass -ClassName Config
Add-SCSMAllowListClass : 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

Getting Started with Service Manager Cmdlets for Windows PowerShell

Get-SCSMAllowList
Remove-SCSMAllowListClass
Reset-SCSMAllowList