Skip to content

Instantly share code, notes, and snippets.

View Mayer2051's full-sized avatar

MK Mayer2051

  • Tech-Keys
View GitHub Profile
@Mayer2051
Mayer2051 / Get-CurrentPatchInfo.ps1
Created April 23, 2021 04:39 — forked from SMSAgentSoftware/Get-CurrentPatchInfo.ps1
Gets the current software update level of a Windows 10 workstation and compares with the latest available updates. Can also list all available updates for the current build.
[CmdletBinding()]
Param(
[switch]$ListAllAvailable,
[switch]$ExcludePreview,
[switch]$ExcludeOutofBand
)
$ProgressPreference = 'SilentlyContinue'
$URI = "https://aka.ms/WindowsUpdateHistory" # Windows 10 release history
Function Get-MyWindowsVersion {