Last active
October 19, 2017 18:05
-
-
Save infernalsirius/e5532f1a81ccc8317ab36427b0724ee6 to your computer and use it in GitHub Desktop.
More information at http://www.morgantechspace.com/2017/09/how-to-find-windows-os-version-using-powershell.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Get-WmiObject win32_operatingsystem).version | |
Output: | |
6.1.7601 | |
(Get-WmiObject Win32_OperatingSystem).Caption | |
Output : | |
Microsoft Windows 7 Ultimate | |
Get-WmiObject Win32_OperatingSystem | Select PSComputerName, Caption, OSArchitecture, Version, BuildNumber | FL | |
PSComputerName : CATCHYCOMPUTERNAME | |
Caption : Microsoft Windows 7 Professional | |
OSArchitecture : 64-bit | |
Version : 6.1.7601 | |
BuildNumber : 7601 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment