Using Powershell to install windows updates on Multiple windows 10 pc's


I'm trying to install windows updates using below powershell command. Invoke-wujob -computername pc-xx, lt-b01, pc-c0xx -script {ipmo pswindowsupdate; get-wuinstall -microsoftupdate -install -acceptall -autoreboot | Out-File "c:\intel\$(get-date -f yyyy-MM-dd)-WindowsUpdate.log"} -Runnow -Confirm:$false -Verbose . This script works, but will only install the updates on the first computer listed after -computername. Per different sites this should work. i can change order around, again it will install update on first computer listed. It ignores the other two.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,397 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 31,016 Reputation points Microsoft Vendor

    Hi @Anonymous ,

    As PSWindowsUpdate is a third-party module in powershell gallery, you can report the issue to the owner of that package over here

    Best Regards,
    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments