Skip to main content

Winget - Install/Update

Summary

This document explains how to install a Winget package on a target endpoint.

Sample Run

Sample Run

Dependencies

Global Parameters

NameExampleRequiredDescription
ProjectNameInvoke-WingetProcessorTrueThis represents the name of the Agnostic script and should not be changed.

User Parameters

NameExampleRequiredDescription
PackageIdCisco.CiscoWebexMeetingsTrueThe Winget package you wish to install.
ScopemsstorewingetTrueThe source to use when obtaining the package.
OptionalParameter--Scope MachineFalseSpecifies option parameters to deploy/update/remove the application(s)

Process

Please refer to SWM - Software Management - Powershell - Invoke-WingetProcessor for the process.

Output

  • Script Log

FAQ

For auto-deployment of application we have monitor Application - InstallUpdate - Winget, does the auto-deployment work with the optionalparameter needed?

No, for auto-deployment you need to copy this script and have to set the OptionalParameter user param to the global parameter with the value set to it and apply that as an autofix because the auto-deployment monitor do not pass the optional parameter value.