Alibabacloud.com offers a wide variety of articles about seagate hard drive serial number, easily find your seagate hard drive serial number information here online.
Js calls activeX to obtain the serial number of the USB flash drive. For more information, see.
The Code is as follows:
Function GetDIVORPIV (DIV){Var str;Var arrayDIV = new Array ();If (DIV. indexOf ("_")> 0){ArrayDIV = DIV. split ("_");Str = arrayDIV [1];}Else{Str = "";}Return str;}Function GetDIVandPIV (DIVPIV){Var strDIVandPIV;Var strDIVPIV = DIVPIV;Var ar
Article Title: Obtain the CPUID, hard disk serial number, and MAC address in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In the development of many system software, some system uniqueness information is required. Th
The physical serial number of a hard disk cannot be read in some cases, such as a SCSI hard disk or a user who uses a virtual machine. It is said that a popular SATA hard disk cannot be read now.My method is: if the physical serial
Obtain the CPU serial number, hard disk ID, and nic MAC address.
Private void getinfo (){String cpuinfo = ""; // CPU serial numberManagementclass cimobject = new managementclass ("win32_processor ");Managementobjectcollection MOC = cimobject. getinstances ();Foreach (managementobject Mo in MoC){Cpuinfo = Mo. p
Using system;Using Microsoft. Win32;Using system. Globalization;Using system. runtime;Using system. runtime. interopservices;Using system. text;Using system. IO;Namespace hkh. Common{/// /// Summary description for clside./// Public class clside{/// /// Obtain the serial number of the corresponding partition of the hard disk/// /// Public static string getallseri
Note: Only part of the original text is excerpted.
Original article address:
Http://club.excelhome.net/forum.php? Mod = viewthread tid = 449527.
I don't do the technology, but I often use EXCEL to process data. Today I find something interesting and record it. I will use this method to keep my information confidential. Just tell others.
1-19 use the U disk serial number as the work thin to open the pas
First, reference the System.Management; then imports system.management in the code;
The following functions rely primarily on WMI implementations
Get the hard drive serial number
The code is as follows
Copy Code
Dim Cmicwmi as New System.Management.ManagementObjectSearcher ("SELECT * from
());
}
}
// Obtain the first hard disk number
Public string getharddiskid ()
{
Try
{
Managementobjectsearcher searcher = new managementobjectsearcher ("select * from win32_physicalmedia ");
String strharddiskid = null;
Foreach (managementobject mo in searcher. get ())
{
Strharddiskid = mo ["serialnumber"]. tostring (). trim ();
Break;
}
Return strharddiskid;
}
Catch
{
Return "";
}
} // End
// Obtain the di
(){Var bfUsb;BfUsb = CheckUsb ();If (bfUsb = true){Var locator = new ActiveXObject ("WbemScripting. SWbemLocator ");Var computer = locator. ConnectServer (".");Var properties = computer. ExecQuery ("SELECT * FROM Win32_USBHub ");Var e = new Enumerator (properties );Var arrayUsbSN = new Array (); // stores the serial numberVar intCount = 0;For (;! E. atEnd (); e. moveNext ()){Var p = e. item ();Var strSN;Var uSerialNum;Var sn = p. DeviceIDIf (sn. inde
The hard disk Serial Number (Serial Number) is not equal to the Volume Name. Although the latter is easy to obtain, it will be overwritten after formatting the partition, which is unreliable. Unfortunately, many friends often cannot tell this point.
To obtain the physical
MAC address of the NIC
Select macaddress from win32_networkadapter where (macaddress is not null) and (manufacturer
Result: 08: 00: 46: 63: FF: 8C
Serial number of the CPU
Select processorid from win32_processor
Result: 3febf9ff00000f24
Motherboard serial number
Select serialnumber from win32_bios
Result: 2836
Getting the serial number is the information to read the soft hard disc, which can be obtained by using the following function:
Public Declare Function getvolumeinformation Lib "kernel32.dll" Alias "Getvolumeinformationa" (ByVal lpRootPathName as St Ring, ByVal Lpvolumenamebuffer as String, ByVal nvolumenamesize as Integer, Lpvolumeserialnumber as Long, Lpmaximu
Hard disk
private void GetInfo (){String cpuInfo = "";//cpu serial numberManagementClass cimobject = new ManagementClass ("Win32_Processor");Managementobjectcollection MOC = Cimobject. GetInstances ();foreach (ManagementObject mo in MOC){CpuInfo = mo. properties["Processorid"]. Value.tostring ();Response.Write ("CPU serial Nu
1. Obtain the CPU ID
DWORD cdlgregister: getcpuid ()
2. Obtain the serial number of the hard drive C.
DWORD cdlgregister: getharddisknum ()
Code for getting CPU information:
# Include "windows. H "
. Path! = ":")
{
BfResult = true;
}
}
}
Return bfResult;
}
Function ReadUsbSN ()
{
Var bfUsb;
BfUsb = CheckUsb ();
If (bfUsb = true)
{
Var locator = new ActiveXObject ("WbemScripting. SWbemLocator ");
Var computer = locator. ConnectServer (".");
Var properties = computer. ExecQuery ("SELECT * FROM Win32_USBHub ");
Var e = new Enumerator (properties );
Var arrayUsbSN = new Array (); // stores the serial number
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.