WMIC
August 18 201889 words, ~1 min. read
windows, administration
Recently, I wanted to get the version, including build number, from my Windows 10 laptop.
Of all the options I tried, I preferred wmic from WMI Command Line Tools. wmic extends Windows Management Instrumentation (WMI), Microsoft's implementation of Web Based Enterprise Management (WBEM); however, wmic is more intuitive and is easier to use as a scripting solution.
Try these examples,
C:\> wmic os get Version
C:\> wmic os get Version, BuildNumber
C:\> wmic os get /?
C:\> wmic computerSystem get Name, SystemType, Model, TotalPhysicalMemory
C:\> wmic bios get SerialNumber