But is there a way to get the exact version string using command line output similar to the one mentioned in the image?
The attached is the output of "winver" command from run. PS: I am looking for a batch or PowerShell command.
There are some alternates available to get the Windows version like this PowerShell command:
[System.Environment]::OSVersion
Winver is a command that displays the version of Windows that is running, the build number and what service packs are installed: Click Start – RUN , type “winver” and press enter.
How to check the version of PowerShell. To find which version of PowerShell you have installed, start a PowerShell console (or the ISE) and type $PSVersionTable and press ENTER . Look for the PSVersion value.
In the PowerShell window, type $PSVersionTable. PSVersion and press ENTER to get the exact version of PowerShell.
The ver
command shows something like this:
> ver Microsoft Windows [Versión 10.0.17134.228]
But in PowerShell (or Git Bash) you have to call it through the cmd
command:
> cmd /c ver
The following commands are is going to help you with that. If you need more information, just type in systeminfo:
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" wmic os get Caption,CSDVersion /value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With