Skip to content
WindowsBeginner

How to Run Windows Update from Command Line (CMD & PowerShell)

Method 1: Using Command Prompt (CMD) Open Command Prompt with Administrator Privileges Press Windows + S, type cmd, and right-click Command Prompt. Select Ru...

BI
Bison Technical Team Enterprise IT specialists
Updated 01 Jan 2025 1 min read 1,581 total views

Method 1: Using Command Prompt (CMD)

  1. Open Command Prompt with Administrator Privileges

    • Press Windows + S, type cmd, and right-click Command Prompt.
    • Select Run as Administrator.
  2. Check Windows Update Status

    Advertisement
    • Enter the following command:
      cmd
      Copy code
      wuauclt /detectnow
    • This triggers Windows to check for updates.
  3. Download and Install Updates

    • Use this command:
      cmd
      Copy code
      wuauclt /updatenow
    • It forces Windows to start downloading and installing available updates.
  4. Restart After Updates (Optional)

    • Restart your computer if updates require it:
      cmd
      Copy code
      shutdown /r /t 0

Method 2: Using PowerShell

  1. Open PowerShell with Administrator Privileges

    • Press Windows + S, type PowerShell, and right-click Windows PowerShell.
    • Select Run as Administrator.
  2. Install PowerShell Windows Update Module

    • If not already installed, run:
      powershell
      Copy code
      Install-Module PSWindowsUpdate -Force
  3. Import the Windows Update Module

    • Enter the following command:
      powershell
      Copy code
      Import-Module PSWindowsUpdate
  4. Check for Updates

    • Use the command:
      powershell
      Copy code
      Get-WindowsUpdate
  5. Install Updates

    • Run this command to install updates:
      powershell
      Copy code
      Install-WindowsUpdate -AcceptAll -AutoReboot
    • The -AcceptAll parameter accepts all updates, and -AutoReboot reboots your system if needed.

YOUR FEEDBACK

Was this guide useful?

Your answer helps us keep BISONKB accurate and practical.

BISON AI

Ask about “How to Run Windows Update from Command Line (CMD & PowerShell)”

This interface is ready to connect to your preferred AI provider. No article or user data is sent until that service is configured.

THE BISON BRIEF

Practical IT knowledge, once a week.

New troubleshooting guides, scripts and infrastructure notes. No noise.

By subscribing, you agree to our privacy policy.