Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get hardware info on server

Can you read the servers hardware info via a web app in c#?

like image 959
Jan Johansen Avatar asked Feb 10 '11 09:02

Jan Johansen


1 Answers

I have a post on the blog about getting the number of CPU/Cores of a machine. Getting the No Of CPUs and Cores

The Win32_ComputerSystem WMI class has a whole lot of other interesting info. The code in the post shows you how to query and extract any of this info.

Hadrdrive space you can get from the Win32_LogicalDisk Class. This page will give you all of the other WMI classes you could possibly use http://msdn.microsoft.com/en-us/library/aa394554(v=VS.85).aspx

like image 189
Shiv Kumar Avatar answered Sep 28 '22 16:09

Shiv Kumar