Leonardo
Leonardo

Reputation: 1363

Retrieving hardware info for Windows and Linux

I have a dual boot (Ubuntu and Win7) machine and I need retrieve some hardware info. In this first moment, I'll list the following:

  1. Processor ID or Serial Number;
  2. Motherboard Serial Number;
  3. Hard-disk Serial Number;
  4. Graphical card Serial Number.

Is there any way to get those information, with same data, from both OS, using native programs (non-downloaded programs)?

PS: I'm developing in Java, so any command line or other libraries are accepted.

Thanks in advance.

Upvotes: 1

Views: 1209

Answers (1)

emallove
emallove

Reputation: 1567

For Windows 7, you can use WMIC and Get-WmiObject in PowerShell to get processor and GPU serials, e.g.,

> Get-WmiObject Win32_Processor
> WMIC PATH Win32_VideoController GET Description,PNPDeviceID

See also this thread.

Upvotes: 1

Related Questions