This post is the first of a few where I will be publishing the results of several years of experience working with SCCM 2007/2012 and PowerShell.

Indeed, I have always worked with PowerShell, and through time, I have noticed that for certain automation needs, a lot of PowerShell Cmdlets were simply not existing (This is especially true SCCM 2007 since Microsoft has never released any PowerShell cmdlets).

In this post you will find all the PowerShell cmdlets you need in order to manage your Software updates in SCCM 2007 with PowerShell. (This requires at least PowerShell v 2).

This work is based on some original work from Michael Niehaus . Other have completed his work. The complete module (the old version) can easily be found on the internet.  But I will post my updated version of it (with more cmdlets and bug fixes) anytime soon.

Here under you will find the Windows updates Cmdlets for ConfigMgr 2007 that have been lacking in the original module. It contains the following list of functions:

Software updates powershell cmdlets



[important] These Functions are part of a bigger module : “Sccm-Commands“. This module has been developed through the years by the community and is provided as is. To get the full version (revised) version you will need to be a bit more patient for now 😉 .[/important]







By | 2016-10-19T21:00:17+00:00 June 12th, 2014|ConfigMgr, Functions, module, PowerShell, Sticky|14 Comments

About the Author:

Stéphane is a dynamic and passionate Cloud and datacenter Microsoft MVP since. He is the founder of the Basel PowerShell user Group (BPUG), the co-founder of the French Speaking PowerShell UserGroup (FRPSUG), author, blogger, and received the community award "PowerShell Hero" from Stéphane has implemented microsoft infrastructure solutions in various countries of Europe and is currently working in Basel / Switzerland. Stéphane help his clients to reduce their global infrastructure costs by implementing Microsft infrastructure solutions by combining great products such as System Center, Windows Server, with heavy automation using Windows PowerShell. Stéphane loves languages, Belgium beer, French cheese and French Wine. If any of these topics are of your interest, don't hesitate to come and say hi.


  1. Stephane June 25, 2015 at 6:16 pm - Reply

    Hi msitekkie,

    Indeed, it was missing in latest version. I have corrected this and added it in a new version (2.1).
    You can download it from here –>


    • henryvii June 25, 2015 at 10:11 pm - Reply

      Many thanks for the update. Do you intend to include a matching NEW-SCCMpackage CMDLET at some point?

      • Stephane June 25, 2015 at 11:03 pm - Reply

        I just updated the Module again. Also added the missing program cmdlets 😉 (use the same link as above)

        • henryvii June 27, 2015 at 9:57 pm - Reply

          Thanks for the quick response again.

  2. msitekkie June 25, 2015 at 11:59 am - Reply

    I downloaded the full module from Github and notice it includes references in the code to GET-SCCMPackage but this doesn’t seem to be one of the commands available, which seems odd. Is there a version that does include it?
    (I know Rikard Ronnkvist’s module from does include this command)

  3. John Harper November 23, 2014 at 5:56 am - Reply

    Every command returns the following error
    Get-WmiObject : Cannot validate argument on parameter ‘ComputerName’. The argument is null or empty. Supply an argument that is not null or empty and then try the command again.

    This occurs when using the examples provided on nearly every command.

    • Stephane November 27, 2014 at 2:59 pm - Reply

      HEllo John,

      Are you sure you created the connection string first like this:
      $SCCMServer = Connect-SCCMServer -Computername -siteCode -cred

      And then use it as fallow:
      Get-SCCMCollection -SCCMServer $SCCMServer

      • N6600 July 22, 2016 at 1:35 pm - Reply


        I am struggling to make it work. I am still getting errors. Would you be so kind and write some brief fool proof steps how to import and make it work. Many thanks in advance.

        • Stephane July 26, 2016 at 5:56 pm - Reply

          Hi, what is your error message?

          • N6600 July 27, 2016 at 7:31 am

            Hello, couple days ago I got it working after all. By reading through the script and seeing used parameters I built up the PS script and it works like a charm. Even without “-cred”. Thanks again and sorry :/

          • Stephane July 27, 2016 at 8:46 am

            Ok, awesome. Glad it helped!

  4. Stephane June 12, 2014 at 7:29 pm - Reply

    @dex : No worries my friend ! Let me know how it work out for you. ^^

    @Fx : Thanks Fx!I will post the complete version of the module with a lot more cmdlets GitHub anytime soon.

  5. LazyWinAdm June 12, 2014 at 6:45 pm - Reply

    Nice work Stephane!
    You should drop the code on GitHub, people could also contribute to it 🙂

  6. Dexter (@DexterPOSH) June 12, 2014 at 10:03 am - Reply

    Nice Stephane !
    Thanks a lot for sharing the Software Updates one… 🙂
    Ned these now

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: