To get the Motherboard Serial in C# and VB.NET you can use the following snippet.

Sample C#

var managementObjectSearcher = new ManagementObjectSearcher("Select * From Win32_BaseBoard");
foreach (var managementObject in managementObjectSearcher.Get())

Sample VB.NET

Dim managementObjectSearcher = New ManagementObjectSearcher("Select * From Win32_BaseBoard")
For Each managementObject As var In managementObjectSearcher.Get()

some mainboard manufacturers do not add this information, you will then geht something like

Not Applicable

One thought on “How to get the Motherboard Serial in C# and VB.NET”

Leave a Reply