How To Get Windows Version Powershell. We may also use the Windows Management Instrumentation (WMI) class to check for the current version of your operating system. The Get-WindowsEdition cmdlet gets the current editions of the specified Windows image.
Right click Windows Start menu and choose to Windows PowerShell to open a new PowerShell window. Output: In particular, he was referring to using the static OSVersion property from the System. If you haven't changed the location, the default path of the package is installed to C:\ProgramFiles\PowerShell\version.
To get the Windows version number, as Jeff notes in his answer, use: [Environment]::OSVersion.
To start, open the "Start" menu, search for "Windows PowerShell," and click it in the search results.
How can I find what version of Windows PowerShell my computer is running?. CMD: VER - Display the current operating system version, with a list of version numbers. Get-Host - Get the version of PowerShell.