Hi, does anyone here know how to tell the difference between windows 10 and 11 using Winbatch?
I'm trying to determine if the person running the script is using windows 11 so I can exit the script, anything other than this is acceptable. I've been attempting this with WinVersion(level) and from the help pages on WinBatch/my own tests I can see that when searching for major version windows 10 and 11 are lumped together. I would like to find a way to differentiate between the two. I'm running WinBatch version 2022D.
I have been advised not to use build number as with each different version of Windows you can have the same build number and I've tried using the ReleaseID as it seemed like a reliable way to differentiate however with a computer running Windows 10 it returned "2009" which I was only expecting to happen with Windows 11.
Thanks.