mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-15 21:14:53 +02:00
Added list-installed-hotfixes.ps1
This commit is contained in:
parent
c053eeafa5
commit
3add3bef6b
24
scripts/list-installed-hotfixes.ps1
Normal file
24
scripts/list-installed-hotfixes.ps1
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<#
|
||||||
|
.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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user