Search
-
Creating New Software Asset in Powershell
Hello, I'm trying to use SMLets to create some Software Assets from a csv. For some reason when I try to create the new object I get this error InvalidOperation: (Cireson.AssetManagement.SoftwareAsset:CreatableEnterpriseManagementObject) [New-SCSMObject], InvalidSimpleObjectValueException This is the code for actually… -
Re: Creating New Software Asset in Powershell
While Justin beat me to the ID field, you also need to hit the enum's correctly. Here is an example if ( !(Get-Module -Name smlets -ErrorAction SilentlyContinue) ) {Import-module smlets} $SoftwareAssetClass = Get-SCSMClass -name Cireson.AssetManagement.SoftwareAsset $SoftwareAssetApprovedEnum = Get-SCSMEnumeration -Name…