def read_wmic
      res = @backend.run_command('wmic os get * /format:list')
      if res.exit_status == 0
        sys_info = {}
        res.stdout.lines.each { |line|
          m = /^\s*([^=]*?)\s*=\s*(.*?)\s*$/.match(line)
          sys_info[m[1].to_sym] = m[2] unless m.nil? || m[1].nil?
        }

        @platform[:release] = sys_info[:Version]
        # additional info on windows
        @platform[:build] = sys_info[:BuildNumber]
        @platform[:name] = sys_info[:Caption]
        @platform[:name] = @platform[:name].gsub('Microsoft', '').strip unless @platform[:name].empty?
        @platform[:arch] = read_wmic_cpu
      end
    end
def read_wmic
      res = @backend.run_command('wmic os get * /format:list')
      if res.exit_status == 0
        sys_info = {}
        res.stdout.lines.each { |line|
          m = /^\s*([^=]*?)\s*=\s*(.*?)\s*$/.match(line)
          sys_info[m[1].to_sym] = m[2] unless m.nil? || m[1].nil?
        }

        @platform[:release] = sys_info[:Version]
        # additional info on windows
        @platform[:build] = sys_info[:BuildNumber]
        @platform[:name] = sys_info[:Caption]
        @platform[:name] = @platform[:name].gsub('Microsoft', '').strip unless @platform[:name].empty?
        @platform[:arch] = read_wmic_cpu
      end
    end
reads os name and version from wmic
 @see https://msdn.microsoft.com/en-us/library/bb742610.aspx#EEAA
 Thanks to Matt Wrock (https://github.com/mwrock) for this hint