Skip to content

Windows🔗

Windows Updates🔗

Get stand-alone update packages directly from Microsoft.

Get information about current running Windows:

PS> (Get-ComputerInfo).OSVersion
10.0.19044

Explanation of the number can be found here.

Get the Window Update Build Revision (UBR):

PS> (Get-ComputerInfo).UBR
2251

Get list of installed updates:

PS> Get-HotFix | Sort-Object InstalledOn -Descending

Check Windows Version🔗

if ((Get-CimInstance -ClassName Win32_OperatingSystem).Caption -like "Microsoft Windows 10*")
{
  Write-Host "Windows 10"
}
else
{
  Write-Host "Windows 11"
}