|
-
Jun 10th, 2010, 07:23 AM
#1
VB 2008---- Get using System.Management on remote computer
Can you use System.Management to get CPU and memory information from a remote computer?
Gary
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Jun 10th, 2010, 07:37 AM
#2
Re: VB 2008---- Get using System.Management on remote computer
may be this will help you
__________________
Rate the posts that helped you 
-
Jun 10th, 2010, 12:36 PM
#3
Re: VB 2008---- Get using System.Management on remote computer
 Originally Posted by GaryMazzone
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
-
Jun 10th, 2010, 12:44 PM
#4
Re: VB 2008---- Get using System.Management on remote computer
Actually I'm looking to extend an app I'm playing with. I'm gathering info on SQL Server database that you point my app to. I get the info for the database alright, full mapping info for the db. I can get the SQL Server info (sp_config).... Now I want to be able to display memory, number of cpus and cpu speed on the remote box.
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Jun 10th, 2010, 01:14 PM
#5
Re: VB 2008---- Get using System.Management on remote computer
well then yes WMI can do that for you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|