powershell sccm get list of collections included in other collection

aleksey 1 Reputation point
2022-10-23T00:49:23.107+00:00

hi, get list of collections included in other collection?

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,522 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. rafalzak 3,226 Reputation points
    2022-10-23T05:11:02.627+00:00

    Hi @aleksey ,

    Please try one of these cmdlet's:
    Get membership rules
    Get-CMCollectionDirectMembershipRule
    Get-CMCollectionExcludeMembershipRule
    Get-CMCollectionIncludeMembershipRule
    Get-CMCollectionQueryMembershipRule

    https://learn.microsoft.com/en-us/mem/configmgr/core/clients/manage/collections/manage-collections#automate-with-windows-powershell

    Please upvote or accept as answer if it helped.

    0 comments No comments

  2. aleksey 1 Reputation point
    2022-10-23T09:39:57.02+00:00

    hi!
    is it possible to use the get-wmiobject cmdlet for this task?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.