From: Park Heesob Date: 2003-12-19T11:01:30+09:00 Subject: Re: Obtain Bios data [win] Hi, From: "Bermejo, Rodrigo (GEAE, Foreign National)" > > Hello Guys, > > I need to get some bios data [eg. service tag, bios version] from a > Win box and I'd like to do it in ruby. > Could you point me in the right direction ? > > Thanks. > > You can get information about Hardware via Registry like this: require 'win32/registry.rb' Win32::Registry::HKEY_LOCAL_MACHINE.open('HARDWARE\DESCRIPTION\System') do |reg| puts "SystemBiosDate: #{reg['SystemBiosDate']}" puts "SystemBiosVersion: #{reg['SystemBiosVersion'][0]}" end Regards, Park Heesob