Edge in Windows 10 S user agent string? Any other way to programmatically detect Windows 10 S?

Is there a way to find out if a user is using Windows 10 S? You can usually use the user-agent string to detect the operating system and browser, but I do not think that Edge on Windows 10 S will have a user agent string other than Edge on Windows 10 Home or Pro.

Is there any other way to programmatically detect Windows 10 S from a browser?

+5
source share
1 answer

To detect the operating system on the client machine, your script can analyze the meaning of two things:

  • navigator.appVersion
  • navigator.userAgent

As we see in the Microsoft document released on 12/15/2016 ( User-Agent String for Microsoft Edge ), the Windows NT token value changes from 6.3 to 10.0 in the EdgeHTML engine, and after Windows 10 S was released on May 2, 2017 , Microsoft did not indicate any changes to navigator.userAgent or navigator.appVersion .

So, Edge on Windows 10 S is no different than Edge on Windows 10 Home or Pro in both cases above.

One more thing I have to say:

userAgent not reliable.

New browsers may start using the same UA or part of it as an older browser: you really have no guarantee that the browser agent is really the one advertised by this property. ( additional information )

+1
source

Source: https://habr.com/ru/post/1269838/


All Articles