Bulk Install Windows Update MSU Files with PowerShell

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • Create a FREE Server Academy account and start learning System Administration with our courses and hands-on IT labs: www.serveracad...
    Written instructions: www.serveracad...
    There may come a time when you need to manually install several Microsoft update *.msu files. If you have a laptop that cannot be connected to the internet or a WSUS server and have several update files to install it can take an entire day to install all of them.
    A quick and easy way to avoid the pain and repetition of this is to script the installations and that is what you will learn in this tutorial.

ความคิดเห็น • 25

  • @ajnava9169
    @ajnava9169 3 หลายเดือนก่อน

    Thank you so much on this. This really solved my issue patching my servers . KUDOS!

  • @Awesomenes4L
    @Awesomenes4L 4 ปีที่แล้ว +2

    Just had to install 50+ updates manually across 20 servers. This will help a bunch, thanks.

    • @ServerAcademy
      @ServerAcademy  4 ปีที่แล้ว

      Nice!! Glad this one was helpful it took some work to put together

  • @subramanid3671
    @subramanid3671 11 หลายเดือนก่อน

    Can i get the script

  • @krishnakvvs
    @krishnakvvs 4 ปีที่แล้ว +2

    how to install on remote servers, Could you please let me know.

    • @ServerAcademy
      @ServerAcademy  4 ปีที่แล้ว

      You need to enable PS Remoting then you can execute the commands remotely: docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-7

    • @dharanidharbapathu3451
      @dharanidharbapathu3451 3 ปีที่แล้ว

      @@ServerAcademy I have this - the copy is happening just fine, but, the install isn't happening on the remote computers $UpdatePath = Get-ChildItem \\computername\updates
      $computers= get-content -path "C:\Users\administrator\Desktop\server.txt"
      foreach ($pc in $computers) {
      foreach ($update in $updatepath) {
      Copy-Item -Path $update.FullName -Destination "\\$pc\c$\Windows\Temp" -Force -Recurse
      $UpdateFilePath = $update.FullName
      Invoke-Command -ComputerName $pc -ScriptBlock { start-process -wait wusa -ArgumentList "/update $updatefilepath","/quiet","/restart"}
      }
      }

    • @sarumathir8751
      @sarumathir8751 3 ปีที่แล้ว

      @@dharanidharbapathu3451 did the script work ? Am looking for similar kind of one, TIA

  • @MegaFun78
    @MegaFun78 4 ปีที่แล้ว +1

    gracie

  • @Superdanceband
    @Superdanceband 4 ปีที่แล้ว +1

    nice tutorial

  • @sriramgce1985
    @sriramgce1985 4 ปีที่แล้ว +1

    super

  • @steve4334
    @steve4334 ปีที่แล้ว

    Great Tutorial, very helpful and the way you explain it makes sense to a PS NOOB like me :D Thanks you very much!

  • @supriyochatterjee4095
    @supriyochatterjee4095 3 ปีที่แล้ว

    Please kindly upload videos related to Windows Server Migration and Windows Server Security and File Management and Backup via Powershell Automation techniques

  • @daretodoforu
    @daretodoforu 3 ปีที่แล้ว

    You cane use the below command if you have folder with spaces so that you can consolidate all msu file under one directory Copy-Item $updatefilepath -Destination "c:\windows\Patches"

  • @hlo512
    @hlo512 2 ปีที่แล้ว

    i tried to this script to install the msu and i have a failed of installing msu as you showed in the video. Do you have any troubleshoot for that failures?

  • @RomeroProductions
    @RomeroProductions 3 ปีที่แล้ว

    can I do this using a DVD? I have a bunch of servers at a Federal Site that are not on the Internet and need to still patch them. I would like to be able to create this same process to auto run from a DVD. great video by the way thanks for the tips!

  • @yukihao90
    @yukihao90 3 ปีที่แล้ว

    I wanted to like this vid, but the likes are on 69 so I don't wanna be the guy who'll break the cycle

  • @rohitvishwakarma9965
    @rohitvishwakarma9965 3 ปีที่แล้ว

    I tried to install msu file by using session with invoke command it's not working but the simple command is working fine. Means ps remoting is working but when trying to install msu file it not installing please help me on this

  • @marwinst.7599
    @marwinst.7599 3 ปีที่แล้ว

    what is when i want to uninstall an update later? i think it make more sense to using not a bulk installation and the normal way tu use WSUS!? i'm wrong or tell me in which cases i have to use this way?

  • @humaurtum100
    @humaurtum100 3 ปีที่แล้ว

    Can you please share How can we use this script for installing msu on multiple remote computers

  • @howiekalbz7396
    @howiekalbz7396 4 ปีที่แล้ว

    Very informative, this will save some time for sure.

  • @kamsaid7823
    @kamsaid7823 3 ปีที่แล้ว

    this is just awesome..

  • @ramyogeshwaran
    @ramyogeshwaran 4 ปีที่แล้ว +1

    Super