AnsweredAssumed Answered

YNT: vrf bios id

Question asked by VRFuser on Dec 24, 2007
Dear Ahmet,
A.MAC ID:
You can learn MAC address using "ipconfig/all" command in command line prompt. Also 1.you can print the results to a file using following command in command line; "ipconfig/all>c:     psdeneme.txt"
2.After that you can easily process the content of deneme.txt to find the MAC address B:HD SERIAL 1.System Hard Drive(s) serial number(and more) can be easily obtained using "Win32_PhysicalMedia" and "Win32_DiskDrive" classes in .NET(So, As VEE 8.x supoorts .NET, there is no problem) Here is a sample code in C#(can be easily converted to VEE)

using System.Collections;
using System;
using System.Collections;
using System.Management;
.
.
.
class hardDisk
{
      private object model = null;
      private object tip = null;
      private object seriNo = null;
      public object Model
      {
            get
            {
                  return model;
            }
            set
            {
                  model = value;
            }
      }
      public object Type
      {
            get
            {
                  return type;
            }
            set
            {
                  type = value;
            }
      }
       public object SerialNo
      {
            get
            {
                  return serialNo;
            }
            set
            {
                  serialNo = value;
            }
      }
}

ArrayList ALhdd = new ArrayList();
ManagementObject Searcher;
searcher = new ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive"); foreach(ManagementObject disk in searcher.Get()) {
      hardDisk hdd = new hardDisk();
      hdd.Model = disk["Model"];
      hdd.Type = disk["InterfaceType"];
      ALhdd.Add(hdd);//Add each HDD into ALhdd arraylist }

searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia"); int index = 0; foreach(ManagementObject disk in searcher.Get()) {
      hardDisk hdd = (hardDisk)ALhdd[index];
      if (disk["SerialNumber"] == null) hdd.SerialNo = "None";
      else hdd.SerialNo = disk["SerialNumber"];
      ++index;
}


2.Also you can find useful System information(GetFreeDiskSpace, GetDriveType...)in "kernel32.dll". You have to search through internet what information you can obtain using kernel32.dll.
3.As last word please visit http://msdn.microsoft.com/library/en-us ... erence.asp link to learn more on WMI.

C.BIOS ID
1.I don't know how to get it. If you can learn please send us a small code

Regards
Cengiz EKEN,MST-TMM@Aselsan,ANKARA

________________________________

Kimden: ahmet kilic [mailto:ahmet_kilic@hotmail.com]
Gönderilmis: Pzt 24.12.2007 13:57
Kime: VRF
Konu: [vrf] bios id



Dear all,

How to get bios id, mac id, HD serial number using VEE? I need them security for programs.

Best regards

Ahmet KILIC





________________________________

Windows Live Mail'i ilk deneyenlerden olun. Windows Live Mail. <http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d>
---
You are currently subscribed to vrf as: ceken@aselsan.com.tr To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
######################################################################
Dikkat:

Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.
Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi gorusu olmak zorunda degildir.

######################################################################
Attention:

This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. E-mails to and from the company are monitored for operational reasons and in accordance with lawful business practices.
Any views or opinions presented are solely those of the author and do not necessarily represent the views of the company.

######################################################################


---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".

Outcomes