wusa install msu in sequence RRS feed

  • Question

  • is

    there a way to install msu in sequence from a folder?

    this is what i have

    $updatedir = "\\server\share"

    $files = Get-ChildItem $updatedir -Recurse
    $msus = $files | ? {$_.extension -eq ".msu"}

    foreach ($msu in $msus)
        write-host "Installing update $msu ..."
        $parameters = $msu /quiet /norestart"
        $install = [System.Diagnostics.Process]::Start( "wusa",$parameters )
        write-host "Finished installing $msu"

    write-host "Restarting Computer"
    Restart-Computer -force

    • Moved by Bill_Stewart Wednesday, May 30, 2018 7:25 PM Help vampire
    Monday, April 2, 2018 12:29 AM

All replies

  • What does "in sequence " mean?

    If any MSU requires a restart your code will fail on that MSU.

    I highly recommend using WUS to deploy patches as it can control all of this transparently.


    Monday, April 2, 2018 12:54 AM