Installing Winget (if needed)

What

Winget is a command line tool to manage applications on the Windows 10 and 11 platform. 

When/Why

Before we can use winget, of course it must be installed.  On any Windows Device, you'll be looking for the Microsoft App Installer, as shown:

If this App is not listed in Add/Remove Apps and Features, then you will need to install it.

Just running the winget command from a PowerShell prompt is also an easy way to test if the App Installer is present on an individual machine.  If doing so en masse, the custom field example listed in the "Authorizing" article will work as well (every device that has no value in the custom field will need the install). 

How

If winget (App Installer) is not installed, it can be downloaded from https://github.com/microsoft/winget-cli/releases/ (latest) and installed through FIleWave in simple PowerShell script (sample provided below).  Note that it is the msixbundle that we'll want to download:

# PowerShell can do the install for us, we just need to point to the file we downloaded from the above
Add-AppPackage -path “C:\example\example.msixbundle”

The above is just a simple example of the Add-AppPackage command, but the below shows using this command to install the desktop app installer (a PowerShell activation script, with the msix file in the same location).