How to find the Windows version from the PowerShell command line

前端 未结 25 1125
野的像风
野的像风 2020-12-22 15:51

How do I find which Windows version I\'m using?

I\'m using PowerShell 2.0 and tried:

PS C:\\> ver
The term \'ver\' is not recognized as the name o         


        
25条回答
  •  庸人自扰
    2020-12-22 16:29

    This will give you the full version of Windows (including Revision/Build number) unlike all the solutions above:

    (Get-ItemProperty -Path c:\windows\system32\hal.dll).VersionInfo.FileVersion
    

    Result:

    10.0.10240.16392 (th1_st1.150716-1608)
    

提交回复
热议问题