Skip to content

Instantly share code, notes, and snippets.

@marzme
marzme / Convert-WingetTextToObjectBackup.ps1
Last active June 23, 2024 23:53
A PowerShell function that converts the text output from winget into PowerShell objects.
Function Convert-WingetTextToObject {
<#
.SYNOPSIS
Converts the text output from winget commands into custom PowerShell objects.
.DESCRIPTION
Converts the text output from winget commands into custom PowerShell objects.
.PARAMETER WingetRawText