How To Get Windows Version. If you want to find just the OS version, you can use ver command. This opens the Run dialogue box on Windows.
Look at the second line and you will see the exact Windows version and feature compilation that is installed on your computer. This opens the Run dialogue box on Windows. In particular, he was referring to using the static OSVersion property from the System.
Run the below WMIC command to get OS version and the service pack number. wmic os get Caption,CSDVersion /value.
Then, you can get the version and os.
The number is based on the date of the most recent large build release and uses a YYMM format. Then it will be easier to mount the ISO file with a Windows installation image and get this information from the install.wim file. Click the Download & install button.