OK, using the WMI Code Generation tool you can do the following. Start the application 2. On main menu bar click on Code Language and select the language of choice. On the tab 'Query for data from a WMI class' 3. Ms 7297 ver 21 manual In Namespace drop down select 'root CIMV2' 4. In 'Classes (dynamic or static) select 'Win32_SystemEnclosure' 5.

Jun 12, 2014 - I need to retrieve some important information from the computer that my software is running, i.e. Download Serial Number, Manufacturer, Bios, etc. Microsoft has a tool which will create VB.Net, C# or VB Scripts for the WMI information.

In the Results list box select all the values you wish returned to you 6. Click on 'Execute Code' 7.

Number

In the command window that opens make sure all the values you wish to return are there 8. Copy the code in the language of your choice to your program. Add a reference to the dll 'System.Management.dll'.