“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’.
This content is restricted to subscribers