10 thg 12, 2025

Hướng dẫn chạy cập nhật "Windows Update" bằng Powershell




tham khảo cách để update window đơn giản với powershell nhé. tham khảo thêm tại video sau đây.

To install Windows updates via PowerShell, you need to install the module first: Install-Module PSWindowsUpdate Import-Module PSWindowsUpdate Add-WUServiceManager -MicrosoftUpdate Commands Install all available updates Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot | Out-File "C:\($env.computername-Get-Date -f yyyy-MM-dd)-MSUpdates.log" -Force Force other computers to update $Computers = "pc2,pc3,pc4" Invoke-WUJob -ComputerName $Computers -Script {Import-Module PSWindowsUpdate; Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot} -RunNow -Confirm:$false | Out-File "c:\$Computers-$(Get-Date -f yyyy-MM-dd)-MSUpdates.log" -Force




Hướng dẫn chạy cập nhật "Windows Update" bằng Powershell Rating: 4.5 Diposkan Oleh: http://pdunoteit.blogspot.com/