PowerShell/scripts/list-installed-hotfixes.ps1
2025-05-12 22:01:54 +02:00

25 lines
636 B
PowerShell
Executable File

<#
.SYNOPSIS
Lists the installed hotfixes
.DESCRIPTION
This PowerShell script lists the installed hotfixes.
.EXAMPLE
PS> ./list-installed-hotfixes.ps1
Source Description HotFixID InstalledBy InstalledOn
------ ----------- -------- ----------- -----------
MyPC Update KB5054977 NT AUTHORITY\SYSTEM 4/10/2025 12:00:00 AM
.NOTES
https://github.com/fleschutz/PowerShell
.LINK
Author: Markus Fleschutz | License: CC0
#>
try {
Get-Hotfix
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}