Skip to content

Instantly share code, notes, and snippets.

View DHCook's full-sized avatar

Dalton H. Cook DHCook

View GitHub Profile
@sba923
sba923 / ConvertFrom-WingetStdout.ps1
Last active October 28, 2024 16:00
Convert winget output to PowerShell objects
# this is one of Stéphane BARIZIEN's public domain scripts
# the most recent version can be found at:
# https://gist.github.com/sba923/7924b726fd44af91d18453ee595e6548#file-convertfrom-wingetstdout-ps1
#requires -version 7
# This crude script converts the output of the winget.exe executable into an array of PowerShell objects
# usage: winget <args> | ConvertFrom-WingetStdout.ps1
#
# examples of application: