You need to use WMI check MSDN at this link:
http://msdn.microsoft.com/library/de...oarddevice.asp
using System.Manageme nt;
//Connection credentials to the remote computer - not needed if the logged
in account has access
ConnectionOptio ns oConn = new ConnectionOptio ns();
oConn.Username = "Administrator" ;
oConn.Password = "";
System.Manageme nt.ManagementSc ope oMs = new
System.Manageme nt.ManagementSc ope(\\MachineID , oConn);
System.Manageme nt.ObjectQuery oQuery = new
System.Manageme nt.ObjectQuery( "select SerialNumber from Win32_BaseBoard ");
ManagementObjec tSearcher oSearcher = new
ManagementObjec tSearcher(oMs,o Query);
ManagementObjec tCollection oReturnCollecti on = oSearcher.Get() ;
foreach( ManagementObjec t oReturn in oReturnCollecti on )
{
Console.WriteLi ne("Serial Number : " +
oReturn["SerialNumb er"].ToString());
}
Hope this helps
Ian
"Abubakar" <xv************ @yahoo.co.uk> wrote in message
news:01******** *************** *****@phx.gbl.. .
I have been trying to write a code that will give me the
serial number of a harddrive or that of a motherboard, but
i don't seem to get it right.
Do anybody out there have any idea?