Gianmaria,
You must be aware that not all CPUs have serial numbers available (remeber a
huge controversy over Intel decision to enable CPU serial numbers a couple
of yers ago?).
This is how you can get CPU serial number (or numbers in case it is a
multi-CPU machine):
using System;
using System.Management;
....
SelectQuery query = new SelectQuery("Win32_BaseBoard");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
ManagementObjectCollection coll = searcher.Get();
foreach (ManagementObject obj in coll)
Console.WriteLine("Win32_BaseBoard: SerialNumber = " +
obj.Properties["SerialNumber"].Value);
You can use a similar approach to get the serial number of a hard drive.
Alek
"Gianmaria" <no*************@telenet.it> wrote in message
news:ek**************@TK2MSFTNGP10.phx.gbl...
Anyone knows how can i get the cpu serial or the hd serial of the machine
runnig the application with c#?
regards
Gianmaria