Posted On August 8, 2021

Quick Command To Get Windows Version

kimconnect 0 comments
blog.KimConnect.com >> Windows >> Quick Command To Get Windows Version
To Get Windows Version as String:
(Get-WmiObject -class Win32_OperatingSystem).Caption
[deesee1]: PS C:\Users\kimconnect> (Get-WmiObject -class Win32_OperatingSystem).Caption

Microsoft Windows Server 2012 R2 Standard
To Get Windows Version as Release Number:
[System.Environment]::OSVersion
[deesee1]: PS> [System.Environment]::OSVersion

Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 6.3.9600.0 Microsoft Windows NT 6.3.9600.0
PS C:\> [System.Environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
6      1      7601   65536
[deesee1]: PS> $env:OS
Windows_NT

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

An authentication error has occurred (Code: 0x80004005)

Symptom: [Window Title]Remote Desktop Connection[Content]An authentication error has occurred (Code: 0x80004005).Remote computer: 192.168.1.54[OK] Cause: This…

Windows XP and Browser Compatibilities

1. Internet Explorer: The highest IE version that a machine running on Windows XP would…

View FSMO Roles

View FSMO RolesC:\WINDOWS>ntdsutil > ntdsutil.exe Type roles, and then press ENTER.ntdsutil: roles fsmo maintenance:Note: To…