“Unable to cast object of type” error when running the New-CMDeviceCollection cmdlet together with the LimitingCollectionName option

I am trying to run the New-CMDeviceCollection cmdlet together with the LimitingCollectionName option.

However, this fails with the following error message:

Unable to cast object of type ‘Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlArrayItems’ to type’System.Management.ManagementBaseObject’.

You need a subscription to access the answer.


This content is restricted to subscribers

Login to leave your feedback!

Leave a Reply