![]() Scripting - Server Side (PHP, Perl, etc.The OP did not specify whether the true hardware s/n or the format-generated s/n was required. Agreed, there are lots of 'standards' issues across HDD manufactturers, but I was trying to give the OP at least one workable solution. Windows Presentation Foundation (WPF) & XAML forum Forums VB6 / VBA / ASP Visual Basic 6 How get Hard disk,baios, processor, Mother board Serial no or ID no.NET Installation and Configuration Issues Quick Navigation Visual Basic 6.0 Programming Top ![]() My english is not soo good so I hope my code will help you. in msdn is a list of the wmi class win32 search objects and properties. With the upper function in my post you can query the proccesor serial, bios serial, hdd serial, etc. value has the serial, that's because the wql query of wmi returns a file not the value of a field. Then you need a function for retrieving the last position of the arraylist that is value. This is for a function that executes the query.īios = ocomponents.getserial("WIN32_Bios", "SerialNumber") Searcher = New ManagementObjectSearcher("SELECT " + identifier + " FROM " + queryObject)įor Each As ManagementObject In searcher.Get()ĭim searcherProperties As PropertyDataCollectionįor Each As PropertyData In searcherProperties Private Function getserial(ByVal queryObject As String, ByVal identifier As String) As ArrayList The class is the one is going to handle the function. ![]() Dont forget to import the system.management add it to your proyect as a reference of your class. Here you can do a WQL Query with WMI to retrieve the info you are searching for.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |