Microsoft

System Center Configuration Manager Feedback

Suggestion box powered by UserVoice

How can we improve Configuration Manager?

Powershell: get-cmcollection not returning ObjectPath

The PowerShell cmdlets Get-CMCollection and Get-CMDeviceCollection/Get-CMUserCollection) returns an empty value for "ObjectPath".

This is missing in both 1710 and latest TP (currenty 1801).

This works as expected and ObjectPath = "/":
Get-WmiObject -namespace "root\sms\site_$siteCode" -query "select * from SMS_Collection where CollectionID = 'SMS00001'"

This returns null/empty ObjectPath:
Get-CMCollection -Id SMS00001

/Matt

7 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Mattias shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Mattias commented  ·   ·  Flag as inappropriate

        Tnx Adam for the update, already worked around it for my current needs, just wanted to report it :)

      Feedback and Knowledge Base