Programs
List installed programs:
C:\> wmic product get namePS C:\> Get-WmiObject -Class Win32_Product | Select-Object Name, VersionPS C:\> $INSTALLED = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, InstallLocation
PS C:\> $INSTALLED += Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, InstallLocation
PS C:\> $INSTALLED | ?{ $_.DisplayName -ne $null } | sort-object -Property DisplayName -Unique | Format-Table -AutoSizeView patches and updates:
C:\> wmic qfe
C:\> wmic qfe get Caption,Description,HotFixID,InstalledOnPS C:\> Get-HotFix | ft -AutoSizeLast updated