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...
Method 1: Using Command Prompt (CMD)
-
Open Command Prompt with Administrator Privileges
- Press
Windows + S, type cmd, and right-click Command Prompt. - Select Run as Administrator.
- Press
-
Check Windows Update Status
- Enter the following command:
- This triggers Windows to check for updates.
-
Download and Install Updates
- Use this command:
- It forces Windows to start downloading and installing available updates.
-
Restart After Updates (Optional)
- Restart your computer if updates require it:
Method 2: Using PowerShell
-
Open PowerShell with Administrator Privileges
- Press
Windows + S, type PowerShell, and right-click Windows PowerShell. - Select Run as Administrator.
- Press
-
Install PowerShell Windows Update Module
- If not already installed, run:
-
Import the Windows Update Module
- Enter the following command:
-
Check for Updates
- Use the command:
-
Install Updates
- Run this command to install updates:
- The
-AcceptAllparameter accepts all updates, and-AutoRebootreboots your system if needed.
YOUR FEEDBACK
Was this guide useful?
Your answer helps us keep BISONKB accurate and practical.