My favorite windows command!

By John Savill's Technical Training

Share:

Key Concepts

  • Winget (Windows Package Manager): A command-line tool for Windows that enables users to discover, install, upgrade, remove, and configure applications.
  • Elevated Command Prompt: Running a terminal with administrative privileges to allow silent installations without user-prompt interruptions.
  • Package Management: The process of automating the installation, upgrading, and configuration of software.

The Ultimate Winget Upgrade Command

The speaker highlights a highly efficient command for maintaining software currency on Windows. The specific command is: winget upgrade --all --include-unknown --accept-package-agreements --accept-source-agreements --silent

Breakdown of command parameters:

  • upgrade --all: Instructs the system to check for and update every installed application that has a newer version available.
  • --include-unknown: Forces the tool to attempt upgrades even if it cannot definitively determine the currently installed version.
  • --accept-package-agreements & --accept-source-agreements: Automatically agrees to license terms, preventing manual confirmation prompts.
  • --silent: Executes the installation in the background without displaying user interface (UI) windows or progress bars.

Operational Requirement: To ensure the command runs without interruption (e.g., "Do you want to install this for everyone?"), the command prompt must be run as an Administrator. The user can verify this by looking for the "Administrator:" prefix in the command prompt window title.


Managing Applications with Winget

Beyond bulk upgrades, the speaker outlines a workflow for managing individual applications using the Windows Package Manager:

  1. Search: Use winget search [app name] to locate the specific application ID.
  2. Verification: Use winget show --id [ID] to inspect metadata. This is a critical security step to verify the Publisher and ensure the package is legitimate before installation.
  3. Installation: Use winget install --id [ID] to download and install the verified software.

Key Arguments and Best Practices

  • Efficiency: The speaker advocates for running the bulk upgrade command once a week. This proactive maintenance prevents the common annoyance of being interrupted by "Update Available" pop-ups when trying to launch an application.
  • Security: By using the winget show command, users can mitigate the risk of installing malicious software by confirming the publisher's identity before proceeding with an installation.
  • Automation: The use of the --silent flag combined with administrative privileges transforms a tedious manual task into a "set it and forget it" background process.

Synthesis

The video demonstrates that winget is a powerful, native Windows utility that significantly streamlines software lifecycle management. By leveraging specific command-line arguments, users can automate the maintenance of their entire software library, ensuring security and performance through consistent updates while minimizing manual interaction. The workflow provided—searching, verifying via publisher metadata, and silent bulk upgrading—represents a professional-grade approach to Windows system administration.

Chat with this Video

AI-Powered

Load the transcript when you're ready to chat so the initial page stays lighter.

Related Videos

Ready to summarize another video?

Summarize YouTube Video