Get OS Version and Architecture in PowerShell
By: Cam Wohlfeil
Published: 2018-02-06 0000 EST
Modified: 2018-03-07 0000 EST
Category: Solutions
Tags:
powershell
Get-CimInstance Win32_OperatingSystem | Select Version,OSArchitecture
EDIT: There's several ways to get this info, and also ways to get the 4 digit build numbers for Windows 10.
Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" | select CurrentVersion,CurrentBuild,UBR
More Info: