How to Update Windows 11 Pro and All Apps via Command Prompt Using Winget (Complete CLI Guide)

 To update your entire Windows 11 Pro system and applications using Command Prompt,

use the Windows Package Manager (winget) tool.

Open CMD as Administrator and run


winget upgrade --all


to update all supported apps, and also try to enter


winget update


or


winget update --all


replacing upgrade with update works on linux systems


sudo apt update


and some windows OS (it worked for my OS but I am running Kali desktop with WSL2 in Win11 pro)

I will be creating a post on using KEX next! Short but sweet these will make you more productive in a sense.


or use:


usoclient StartScan


or


usoclient StartDownload


to check for OS updates. 

Step-by-Step Instructions:


Open Command Prompt as Administrator:


Press the Windows key, type cmd.


Right-click "Command Prompt" and select Run as administrator.


Update All Installed Applications (App Store & Third-Party):

Type the following command and press Enter:


winget upgrade --all


If prompted, agree to the source agreements by typing Y and pressing Enter.

Note: If a browser (Chrome/Edge) is running, it may not update until closed.


Update Windows 11 System (OS):

To initiate a Windows Update check and download, you can use:


usoclient StartScan ------ (Scans for updates)


usoclient StartDownload ------ (Downloads updates)


usoclient StartInstall ------ (Installs downloaded updates)


Alternatively, to open the settings page to check, you can use:


start ms-settings:windowsupdate-action

Comments

Popular Posts