Use PowerShell to find all collections where the specified device has a membership

Yesterday I deployed a computer with ConfigMgr and then wondered why it got certain software installed. And so another script was born.

The Get-CMCollectionOfDevice command retrieves all collections where the specified device has a membership

image

The Script can be downloaded from here

4 Replies to “Use PowerShell to find all collections where the specified device has a membership”

  1. You can right-click on a Device in the console and select properties. Under the Deployments tab you can see everything that is targeted to it.

  2. Really awesome. Thanks a lot Alex

    Do you happen to have developed something similar to looking up membership of a single user?

Leave a Reply