Download “List Package Structure (zip)” ListPackageStructure.zip – Downloaded 404 times – 1 KB

My Collegue Michael Petersen asked me for at  script that would list the package structure of the packages in ConfigMgr 2007.

Sometimes we end up with a PackageID from a log file or report, and if there is a lot of packages/folders. Finding the correct package, can be quite difficult.

I decided to make this script without the ConfigMgr Community Cmdlets, since it is merely quite regular WMI queries.

Therefore it is supported in all versions of PowerShell, both 1.0 and 2.0.

I am sure that it can be done prettier than this, but I did not want to spend all day writing it. It works, but please do not hesitate to post suggestions/other solutions.

This overview can be made in SQL Reporting Services too, but it is not everyone who is running reporting services :).