cancel
Showing results for 
Search instead for 
Did you mean: 
Disclaimer
JUMPCLOUD EXPRESSLY DISCLAIMS ALL REPRESENTATIONS, WARRANTIES, CONDITIONS, AND LIABILITIES OF ANY KIND ARISING FROM OR RELATED TO THIRD-PARTY SOFTWARE, SCRIPTS, REPOSITORIES, AND APIS. JUMPCLOUD IS NOT REQUIRED TO SUPPORT ANY SUCH THIRD-PARTY MATERIALS AND ALL RISKS RELATED TO THIRD-PARTY MATERIALS ARE YOUR RESPONSIBILITY. PLEASE ALSO REVIEW THE JUMPCLOUD TOS.

Winget comes with a PowerShell-Module now (Release Candidate)

JuergenKlaassen
Rising Star III
Rising Star III

Hey

You might remember my previous post about installing Winget in the SystemContext here
The recent Winget-version 1.4.3531 comes with a PowerShell-Module which gives you the following functions: 

 

Get-WinGetVersion
Enable-WinGetSetting
Disable-WinGetSetting
Add-WinGetSource
Remove-WinGetSource
Reset-WinGetSource
Find-WinGetPackage
Get-WinGetPackage
Get-WinGetSource
Install-WinGetPackage
Uninstall-WinGetPackage
Update-WinGetPackage

 

Once installed, depending on your installation path, you can import the module by using - as usual: 
Import-Module <Path to Microsoft.WinGet.Client.psd1

This new capability can make the overall handling of packages via WinGet within JumpCloud-Commands a bit more straight forward. 
For example, this could be wrapped in a Command which runs 'after agent install' on a newly enrolled device and helps you to do a bulk install of applications. 

P.S.: an updated version of my previous script can be found here. It pulls this RC from Github during the installation.

1 REPLY 1

JacobLawson
Novitiate III

Thanks for posting the update! I hope this powershell module is released for GA soon.  This would make is so much easier to work with powershell in our scripts.