Quote Originally Posted by GaryMazzone View Post
Can you use System.Management to get CPU and memory information from a remote computer?

Gary
yep, you can use WMI (which is what the system.management classes wrap) to get a huge amount of information from a computer and anything that you can get from WMI on your own computer you can get just as easily from a remote computer (assuming no firewall is blocking the WMI ports and the Windows Management Instrumentation service is running on it). CPU and Memory information is a little vague though... do you mean you want to get information about them as in what model CPU and how much memory, or do you want to get performance data like how much CPU is currently being used and how much RAM each process is using etc. An easy way to see what info you can get from WMI is to use Microsoft's Scriptomatic tool to generate WMI scripts for you - http://www.microsoft.com/downloads/d...displaylang=en

Having said all that, personally I am not very keen on WMI for several reasons and avoid using it unless there is no other way. The main reason being that I dont find it to be completely reliable - it just plain doesnt work on a small percentage of PCs and gives intermittent results on others (for example see this thread which uses WMI to create a service but fails if no one is logged in: http://www.vbforums.com/showthread.php?t=617601) but most people dont have a problem with it so dont let me put you off