Jun 14, 2012 at 4:09 AM
Edited Jun 14, 2012 at 4:10 AM

I am attempting to use the Add-SCSMEnumeration command to add a value to an existing list. In crawling the web to find the best way to do this I have come up with the following. I am still unable to get this to work... Any guidance would be GREATLY appreciated in getting this to work. My command and error are shown below.


PS C:\Users\admin_ryan> Add-SCSMEnumeration -Parent (Get-SCSMEnumeration -Id "66b02881-ba7a-00ee-8859-b3a6fc8d4a24") -Ma
nagementPackName WNB_CustomMP_IncidentExtensionLists -DisplayName "TestRegion1Add" -Name TestRegion1Add.Enum -Ordinal 80
Add-SCSMEnumeration : Value cannot be null.
Parameter name: input
At line:1 char:20
+ Add-SCSMEnumeration <<<< -Parent (Get-SCSMEnumeration -Id "66b02881-ba7a-00ee-8859-b3a6fc8d4a24") -ManagementPackNam
e WNB_CustomMP_IncidentExtensionLists -DisplayName "TestRegion1Add" -Name TestRegion1Add.Enum -Ordinal 800
+ CategoryInfo : NotSpecified: (:) [Add-SCSMEnumeration], ArgumentNullException
+ FullyQualifiedErrorId : System.ArgumentNullException,SMLets.AddSCSMEnumerationCommand




Jun 14, 2012 at 1:34 PM

got it to work. I wasn't able to get the command working with the -ManagementPackName parameter and used the -ManagementPack parameter instead. My command is posted below.


Add-SCSMEnumeration -Parent (Get-SCSMEnumeration -Id "66b02881-ba7a-00ee-8859-b3a6fc8d4a24") -ManagementPack ((Get-SCSMEnumeration -Id "66b02881-ba7a-00ee-8859-b3a6fc8d4a24").GetManagementPack()) -DisplayName "TestRegion1Add" -Name TestRegion1Add.Enum -Ordinal 80