web analytics


SCCM 2007 – Get Package source file locations and sizes

Posted by:

To query Primary Server package source locations and sizes

  1. Open PowerShell
  2. Move to scripts folder
  3. Type Get-PackageSourceSize.ps1 -SiteServer Localhost -SiteCode PS1


Example Output



You can download the code example from here

About the Author:

Kaido Järvemets is a developer, consultant, trainer specializing in Microsoft System Center Configuration Manager and PowerShell Solutions at Coretech. Kaido frequently speaks at European conferences and had his US debut as speaker at MMS April 2013. Kaido is well-known in the Configuration Manager communities where he’s a key player in the PowerShell game. Kaido host one of the most complete Configuration Manager PowerShell library’s in the world with hundreds of free code samples ready to download and implement – www.cm12sdk.net. Kaido has been awarded Microsoft Most Valuable Professional (MVP) in Microsoft Enterprise Client Management for his work with Configuration Manager from 2011 – to present. Kaido is the founder of System Center User Group Estonia in 2011.


  1. Andrew Mason  August 7, 2013

    Not sure I used this in the intended fashion, but after quickly plugging in site server and site code and running this, it ran like a dream!
    Thank you, this saved me a good deal of time.
    PS the Write-Progress is a nice touch.

  2. Jorge  April 15, 2014

    How can I add the name of the package to the output? Please forgive my PS ignorance.

    • Jorge  April 16, 2014

      never mind. figured it out.


Add a Comment