Jump to content

Windows 10 is detected instead of Windows 11


asheroto

Recommended Posts

This is quite a minor issue. Not using compatibility mode. At the top of Recuva it says Windows 10 instead of Windows 11.

Recuva:

image.png.f5c4a6df1acd8658f500509288ab43f8.png

 

winver:

image.png.689424c5b53ea1fc82d67a32ae813a0e.png

 

This issue likely derives from reading the ProductName value from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion. You used to could rely on this, but for whatever reason, Microsoft stopped updating this key after Windows 10. This is not just my computer but also described but many others. Apparently is has to due with the kernel version, not the OS version. This StackOverflow answer discusses the problem more.

regedit:

image.thumb.png.6f7a4b9559dbe07e374bb7570cd0a1fa.png

Fixing it

There are a few ways of getting the correct OS name. Through PowerShell you can do...

(Get-CimInstance -ClassName CIM_OperatingSystem).Caption

image.thumb.png.d60e2325d316e3c3e4b949a5daa54016.png

Even though Recuva doesn't use PowerShell, it could take advantage of WMI or CIM in C#. Not sure what Recuva is written in.

Edited by asheroto
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.