How To Get Windows Version From Registry. Output: Run the below WMIC command to get OS version and the service pack number. wmic os get Caption,CSDVersion /value. We may also use the Windows Management Instrumentation (WMI) class to check for the current version of your operating system.
Open command window and execute ver. Instead, it can be accessed by executing regedit from the Command Prompt or from the search or Run. Right-click Start , then select Run.
If you've added the PaintDesktopVersion or the DisplayVersion registry values as in the article Display Build Info, Version and WinDir Path in the Desktop, you'll see the Windows Edition, Build Information, and WinDir path in the desktop shown as a watermark.
Even I tried to get product key using windows.old folder but it says Then it will be easier to mount the ISO file with a Windows installation image and get this information from the install.wim file.
Navigate to the registry key - HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion. This PC option helps to display all the partitions that are mounted to the computer. How to get the Windows Version from the System Registry.