Remove-SCSMAllowListClass
Remove-SCSMAllowListClass
Removes the specified classes from the allow list of classes that are used by the configuration item Operations Manager 2007 connector during synchronization.
Syntax
Parameter Set: Default
Remove-SCSMAllowListClass [-ClassName] <String[]> [-ComputerName <String> ] [-Credential <PSCredential> ] [ <CommonParameters>]
Detailed Description
The Remove-SCSMAllowListClass removes the specified classes from the allow list of classes that is used by the configuration item Operations Manager 2007 connector during synchronization. An ArgumentException is displayed if the class name cannot be found or if the class name is not present in the allow list.
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 remove the System.SoftwareItem class from the allow list and then retrieve the allow list to verify that the class has been removed.
C:\PS>Remove-SCSMAllowListClass "System.SoftwareItem";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.Library
-------------------------- EXAMPLE 2 --------------------------
Description
-----------
This command attempts to remove a class that is not present from the allow list.
C:\PS>Remove-SCSMAllowListClass "System.SoftwareItem"Remove-SCSMAllowListClass : Class System.SoftwareItem cannot be removed because it is not in the allow list.At line:1 char:26+ Remove-SCSMAllowListClass <<<< "System.SoftwareItem"+ CategoryInfo : InvalidData: (System.SoftwareItem:String) [Remove-SCSMAllowListClass], ArgumentException+ FullyQualifiedErrorId : Invalid allow list XML,Microsoft.EnterpriseManagement.SMCmdlets.RemoveSCSMAllowListClass
Related topics
Getting Started with Service Manager Cmdlets for Windows PowerShell
Get-SCSMAllowList
Reset-SCSMAllowList
AddSCSMAllowListClass