You can use wmic os get
commands on a Microsoft Windows system
to view information related to the operating system via a command-line
interface (CLI). E.g., to determine the version of the operating system you
can issue the command
Windows Management Instrumentation Command-line (WMIC)
command wmic os get version
.
C:\Users\Public>wmic os get version Version 10.0.15063 C:\Users\Public>
Or if you know the system is running a particular version of the Windows
operating system, e.g., Windows 10, but want to see just the build number
for that version of Windows, you could issue the command wmic os get
BuildNumber
.
C:\Users\Public>wmic os get BuildNumber BuildNumber 15063 C:\Users\Public>
[ More Info ]