Powered by GeSHi

Source code for bios.rex

(view source code of bios.rex as plain text)

  1. /*
  2. WMI query to list all properties and values of the Win32_BIOS class
  3. This Open Object Rexx script was generated using the WMI Code Generator, Version 1.30
  4. http://www.robvanderwoude.com/updates/wmigen.html
  5. */
  6.  
  7. Parse Upper Arg strComputer .
  8. If strComputer = "" Then strComputer = "."
  9.  
  10. objWMIService = .OLEObject~GetObject( "winmgmts://"||strComputer||"/root/CIMV2" )
  11.  
  12. Do objItem Over objWMIService~ExecQuery( "Select * from Win32_BIOS" )
  13. 	Say "Name                           : "||objItem~Name
  14. 	Say "Version                        : "||objItem~Version
  15. 	Say "Manufacturer                   : "||objItem~Manufacturer
  16. 	Say "SMBIOSBIOS Version             : "||objItem~SMBIOSBIOSVersion
  17. 	Say
  18. End
  19.