Page 1 of 1 1
Topic Options
#212466 - 2017-04-27 05:00 AM Expand @CSD Macro for use with Windows 10
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4464
Loc: USA
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.

Top
#212487 - 2017-05-06 10:32 PM Re: Expand @CSD Macro for use with Windows 10 [Re: Allen]
adonnat Offline
Just in Town

Registered: 2005-05-06
Posts: 1
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?

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 161 anonymous users online.
Newest Members
diefnet, Arogya, gkustra, emnipetro, Hirze
17644 Registered Users

Generated in 0.027 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org