Skip to content

Instantly share code, notes, and snippets.

View dlisterjr's full-sized avatar

Dave Lister dlisterjr

View GitHub Profile
@alkampfergit
alkampfergit / winget-upgrade.ps1
Last active December 8, 2024 12:57
Winget upgrade output parsed into a real Powershell Object
class Software {
[string]$Name
[string]$Id
[string]$Version
[string]$AvailableVersion
}
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$upgradeResult = winget upgrade | Out-String
@jdhitsolutions
jdhitsolutions / EverythingPrompt.ps1
Last active July 30, 2019 23:14
A "kitchen sink" PowerShell prompt. This only works on Windows platforms, including PowerShell Core.
<#
This may not work properly or completely in all PowerShell hosts. Because the function
relies on Get-CimInstance it will not work on Linux platforms.
It is also admittedly not speedy as it is doing a lot of stuff, although there is an
attempt to cache some information which gets updated every 15 minutes.
To use, dot source this script in your PowerShell profile to make it your default prompt.
Sample prompt: