|
|
|||||||
In the past, , @CSD would return the service pack that your OS was on. Now with Windows 10, Service packs are replaced with bi/annual updates, like 1703, the creators update. The version of Windows 10 can be obtained via the registry at: Code: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseID For Legacy Scripts, I would like to suggest that @CSD also return the ReleaseID for Windows 10. |
||||||||
|
|
|||||||
There are also other views from the command winver.exe I wrote this for lack of macro: $ReleaseId=readvalue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion","ReleaseId") If $ReleaseId<>"" $BuildNumber=readvalue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion","CurrentBuildNumber") $UBR=readvalue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion","UBR") $Version="Version "+$ReleaseId+" (Build "+$BuildNumber+"."+$UBR+")" EndIf $Version Maybe other macro like @buildnumber, @UBR? |
||||||||
|
|
|||||||
Just to let you know that the upcoming mini-update will fix/improve the @OS value so it correctly covers LTSC/SAC versions. Next to that, I've added @RELEASEID which will return... the release id :-) Ruud |