How to Check and Install Updates from PowerShell or Command Prompt in Windows 10/11

Configurare noua (How To)

Situatie

Windows updates are divided into 2 categories: Quality updates, which are constantly released for security reasons and to fix glitches, and Feature updates, which offer improved versions and additional features.

The usual way to update Windows 10/11 is by going to Settings > Update & Security and to check and install updates, but in some cases may needed to install updates from the command line or PowerShell if the usual way doesn’t work.

Solutie

Pasi de urmat

Run Windows Update from Command Prompt

  1. Launch Command Prompt or PowerShell as an Administrator and ask Yes at the UAC prompt.
  2. Force Windows to Check for Updates with one of the following commands:
    • UsoClient StartScan
    • USOClient.exe StartInteractiveScan
  3. After finding Updates, download them with one of the following commands:
    • UsoClient StartDownload
    • ScanInstallWait
  4. Proceed to install downloaded updates with this command:
    • UsoClient StartInstall
  5. When the updates installed, reboot your pc with this command:
    • UsoClient RestartDevice
Run Windows Update from  PowerShell in Windows 10/11
  1. Open PowerShell as Administrator.
  2. Proceed and install the ‘PowerShell Windows Update module’ with this command and ask Yes (press ‘y’), when prompted to install any other provider needed:
    • Install-Module PSWindowsUpdate
  3. Then give the following command to allow the execution of scripts on your machine and ask Yes at the warning when prompted.
    • Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
  4. Now force Windows to download and list all available updates in PowerShell.
    • Get-WindowsUpdate
  5. To install all available Windows Updates from PowerShell give this command:
    • Install-WindowsUpdate
  6. To install all available Windows Updates and the updates for all other Microsoft Products, give this command:
    • Install-WindowsUpdate -MicrosoftUpdate.

Tip solutie

Permanent

Voteaza

(2 din 6 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?