whatdevice icon indicating copy to clipboard operation
whatdevice copied to clipboard

Mistakes Win7HP for Win Server 2008 R2

Open TheGormley opened this issue 7 years ago • 1 comments

https://docs.google.com/document/d/e/2PACX-1vS9DkZfAcBuyWAMidVUggK7VkIHl2TtG_Dg6dEHNIOn8CeBDDfm9DHJEDXT6SvlagD1dH6hfX9mS9Yu/pub

---- WHATDEVICE.APP RESULTS ---- Generated: Tue Aug 28 2018 7:02:49 PM

-- DEVICE INFO -- Manufacturer: null Product: null Operating system: Windows Server 2008 R2 / 7 64-bit Language: en-DE Display resolution: 1920x1080 (may be inaccurate) Scaled resolution: 1280x720 Scaling ratio: 150% Display color depth: 24 GPU: AMD Radeon R7 200 Series Direct3D11 vs_5_0 ps_5_0

-- BROWSER INFO -- Browser: Chrome 68.0.3440.106 Rendering engine: Blink Cookies enabled: true Do Not Track: Not supported User agent string: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

TheGormley avatar Aug 28 '18 17:08 TheGormley

Well, to be fair, the browser doesn't expose that much information about the OS; there's a function to determine the OS and this is what it looks like:

  /**
   * A utility function to clean up the OS name.
   *
   * @private
   * @param {string} os The OS name to clean up.
   * @param {string} [pattern] A `RegExp` pattern matching the OS name.
   * @param {string} [label] A label for the OS.
   */
  function cleanupOS(os, pattern, label) {
    // Platform tokens are defined at:
    // http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
    // http://web.archive.org/web/20081122053950/http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
    var data = {
      '10.0': '10',
      '6.4':  '10 Technical Preview',
      '6.3':  '8.1',
      '6.2':  '8',
      '6.1':  'Server 2008 R2 / 7',
      '6.0':  'Server 2008 / Vista',
      '5.2':  'Server 2003 / XP 64-bit',
      '5.1':  'XP',
      '5.01': '2000 SP1',
      '5.0':  '2000',
      '4.0':  'NT',
      '4.90': 'ME'
};

So... technically it is Windows 7. AFAIK, Server 2008 R2 was built similarly / on top of W7.

mistermantas avatar Oct 03 '18 10:10 mistermantas