Great question — answering as the UphillTech team:
Bit late to the game, but in case you're still interested: Can you create an instance with a minimal set of properties (that is, CacheId ), then use Set-CimInstance to try and set the rest (also try with subsets of the properties, instead of all at once)? $className = "CacheInfoEx" $nameSpace = "ROOT\ccm\SoftMgmtAgent" $cimInstance = New-CimInstance -ClassName $className -Namespace $nameSpace $properties = @{ # Do not add CacheId, that was automatically created with the new instance ... } Set-CimInstance -InputObject $cimInstance -Properties $properties Then there's ye olde way, that is, what needed to be done with WMI to automate all kinds of things in SMS/CCM. Note that LastReferenced...
Full answer by user314159: https://stackoverflow.stackexchange.com/a/79829005 (CC BY-SA 4.0).
Need it done for your business? UphillTech.