Windows Version
CLI
CLI
From command prompt type to launch a GUI screen showing version information...
winver
For more detailed information use...
systeminfo
Powershell
Powershell
Get-ComputerInfo | Select-Object WindowsProductName, WindowsVersion, OsHardwareAbstractionLayerVersion
WindowsProductName WindowsVersion OsHardwareAbstractionLayerVersion------------------ -------------- ---------------------------------Windows 10 Enterprise 2009
[System.Environment]::OSVersion.Version
Major Minor Build Revision----- ----- ----- --------10 0 19044 0
Get-ItemProperty "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion")
BaseBuildRevisionNumber : 1BuildBranch : vb_releaseBuildGUID : ffffffff-ffff-ffff-ffff-ffffffffffffBuildLab : 19041.vb_release.191206-1406BuildLabEx : 19041.1.amd64fre.vb_release.191206-1406CompositionEditionID : EnterpriseCurrentBuild : 19044CurrentBuildNumber : 19044CurrentMajorVersionNumber : 10CurrentMinorVersionNumber : 0CurrentType : Multiprocessor FreeCurrentVersion : 6.3EditionID : EnterpriseEditionSubManufacturer :EditionSubstring :EditionSubVersion :InstallationType : ClientInstallDate : 0ProductName : Windows 10 EnterpriseReleaseId : 2009SoftwareType : SystemSystemRoot : C:\WINDOWSUBR : 1526PathName : C:\WindowsDisplayVersion : 21H2PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersionPSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NTPSChildName : CurrentVersionPSDrive : HKLMPSProvider : Microsoft.PowerShell.Core\Registry
Get-CimInstance Win32_OperatingSystem
SystemDirectory Organization BuildNumber RegisteredUser SerialNumber Version--------------- ------------ ----------- -------------- ------------ -------C:\WINDOWS\system32 myCompany 19044 Windows User XXXXX-XXXXX-XXXXX-XXXXX 10.0.19044
Remote Machine Version
Remote Machine Version
Invoke-Command -ComputerName mycomputer -ScriptBlock {
[System.Environment]::OSVersion.Version.Major
}
Invoke-Command -ComputerName mycomputer -ScriptBlock {
[System.Environment]::OSVersion.Version
}
Major Minor Build Revision PSComputerName----- ----- ----- -------- --------------6 3 9600 0 myserver
Invoke-Command -ComputerName mycomputer -ScriptBlock {
Get-WmiObject Win32_OperatingSystem
}
SystemDirectory : C:\windows\system32Organization : myCompanyBuildNumber : 9600RegisteredUser : Version 14.06SerialNumber : XXXXX-XXXXX-XXXXX-XXXXXVersion : 6.3.9600PSComputerName : myserver
Bibliography
Bibliography