We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!
Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.
Windows 11 is really just an enhanced version of Windows 10, which is why the registry still shows 10. I used the OSBUILD2 line below for what I wanted to see.
OSBUILD2=interval:0,color:ffdd99,text:Operating System,display:%1 (%2)|%15{{{.%17}}}{{{.%16}}} {{{(%18)}}}
%1 aka %operating_system% is working fine and showing Windows 11, but it starts with "Microsoft"
I would prefer to use %21 aka %productname% which removes "Microsoft", but the result for that one is Windows 10.
%operating_system% = Microsoft Windows 11 Enterprise
%productname% = Windows 10 Enterprise
Still the way it is. If you see my post here: https://www.glenn.delahoy.com/forums/topic/windows-11-support/#post-4642 this is how I work through it. We have even updated it since I posted as we now have windows 10/11/ multi user to contend with.
Here is our updated code for identifying what os it is:
# needed to account for Windows 11 as there are some items that still report win 10 like productname
REG=set:OSBuild,value:HKLMSOFTWAREMicrosoftWindows NTCurrentVersionCurrentBuild,display:%1,hidden:1
REG=set:OSEdition,value:HKLMSOFTWAREMicrosoftWindows NTCurrentVersionEditionID,display:%1,hidden:1
IF=value1:%OSEdition%,comp:eq,value2:ServerRdsh
SET OSEdition=Multi-Session
IF=value1:%OSEdition%,comp:eq,value2:EnterpriseS
SET OSEdition=LTSC 2021
SET myProductName=Windows 10 %osedition%
IF=value1:%OSBuild%,comp:ge,value2:22000
SET MyProductName=Windows 11 %osedition%
OSBUILD2=color:%orange%,text:Operating System,display:%MYProductName% (%18)
I would also like to know how to omit the Microsoft from %1
Rtruss i found when i added the code above it still shows Windows 10 on a Windows 11 device. My current build registry entry is showing as 22631
I was curious how the following line works.
IF=value1:%OSBuild%,comp:ge,value2:22000
I was curious how the following line works.
IF=value1:%OSBuild%,comp:ge,value2:22000
IF %OSBuild% is greater than or equal to 22000
where build 22000 was the first build of Windows 11.
Thanks for that, i should have really figure that out lol.
I also realised why i was having issues with rtruss code, I had to change the following.
REG=set:OSBuild,value:HKLMSOFTWAREMicrosoftWindows NTCurrentVersionCurrentBuild,display:%1,hidden:1
REG=set:OSEdition,value:HKLMSOFTWAREMicrosoftWindows NTCurrentVersionEditionID,display:%1,hidden:1
to
REG=set:OSBuild,value:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuild,display:%1,hidden:1
REG=set:OSEdition,value:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID,display:%1,hidden:1
missing the backslashes. that'll do it every time.
also this forum software has nicer code support to make sure it doesn't mangle this kind of thing:
REG=set:OSBuild,value:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuild,display:%1,hidden:1 REG=set:OSEdition,value:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID,display:%1,hidden:1