Mobile, Desktop and Server releases will have the same Version/Release ID but different build numbers.įor Windows 10 up to May 2020 / 2004, this can be retrieved from the registry via the ReleaseID: $release = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseIdįor all later versions, this can be retrieved from the registry via the DisplayVersion: $ver = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name DisplayVersion).DisplayVersion Is a 4 digit code - a 2 digit year plus H1 or H2. The Release ID is a 4 digit code - a 2 digit year plus 2 digit planned month of release. ![]() The VER command returns the Major/Minor / Build number, but does not include the Version/Release ID as displayed in Settings > About. If %ERRORLEVEL% = 0 goto ver_2008R2 PowerShell to retrieve Version / Release ID ![]() SyntaxĪ very simple method of version checking is to pipe a version string into FIND, however there is a possibility that something which is a unique string today might match a minor version released in the future.Į.g. ![]() ![]() Display the current operating system version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |