SCCM Collections with PowerShell

The following script allows to create a collection in a specific folder in SCCM.

  • Import of the SCCM module
  • Check if the collection already exist
  • Creation of the collection with a specific limiting collection if not already existing in the folder

To work properly, this script must be launched from a server with the SCCM Console installed.