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-SCSMAllowListname mp---- --System.Service System.LibrarySystem.Database System.LibraryMicrosoft.Windows.ApplicationComponent Microsoft.Windows.LibraryMicrosoft.Windows.ComputerRole Microsoft.Windows.LibrarySystem.Computer System.LibrarySystem.OperatingSystem System.LibraryMicrosoft.Windows.LogicalDevice Microsoft.Windows.LibrarySystem.SoftwareInstallation System.LibrarySystem.WebSite System.LibrarySystem.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 ConfigAdd-SCSMAllowListClass : The management pack class Config could not be found. Did you mean:System.ConfigItemSystem.Search.ProviderConfigSystem.Announcement.ConfigSystem.GroomingConfigurationMicrosoft.SystemCenter.ConfigureWorkflowTargetMicrosoft.SystemCenter.ConfigItemGroupMicrosoft.SystemCenter.ConfigurationManager.AICatalogMicrosoft.SystemCenter.ConfigurationManager.CollectionInfoMicrosoft.SystemCenter.ConfigurationManager.DCM_CIMicrosoft.SystemCenter.ConfigurationManager.DCM_NonCompliance_CIMicrosoft.SystemCenter.ConfigurationManager.DeployedComputerMicrosoft.SystemCenter.ConfigurationManager.PackageMicrosoft.SystemCenter.ConfigurationManager.ProgramSystem.Notification.ConfigurationSourceSystem.Notification.SIPConfigurationSourceSystem.Notification.SMTPConfigurationSourceMicrosoft.SystemCenter.LinkingFramework.Configuration.CmdbSyncRuleTargetSystem.LinkingFramework.SccmSourceMicrosoft.EnterpriseManagement.LinkingFramework.OpsMgrConnector.ConfigMicrosoft.EnterpriseManagement.LinkingFramework.OpsMgrConnector.OpsMgrCIsSystem.InboundEmail.ConfigurationMicrosoft.SystemCenter.ServiceManager.InboundEmail.Configuration.WorkflowTargetSystem.WorkItem.Activity.WorkflowTargetSystem.WorkItem.ChangeRequest.WorkflowTargetMicrosoft.SystemCenter.WorkItem.DCMIncidentSystem.WorkItem.Incident.Wizard.AutomaticChangeIncidentSystem.WorkItem.Incident.Wizard.DCMIntegrationMicrosoft.SystemCenter.ServiceManager.Portal.Links.ConfigurationServiceManager.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
Related topics
Getting Started with Service Manager Cmdlets for Windows PowerShell
Get-SCSMAllowList
Remove-SCSMAllowListClass
Reset-SCSMAllowList