Jump to content
Sign in to follow this  
NiVZ

Get Memory Info Of Remote PC

Recommended Posts

NiVZ

Hello,

Can anyone tell me the best way to get the total amount of physical memory from a remote machine?

I need to get the memory details for 5000+ machines in our Active Directory and want to do it by querying the remote PC.

I know I can use "memgetstats" to get the memory details, but I need to execute this on the remote machine, or would it be easier to use WMI?

Thanks,

NiVZ

Share this post


Link to post
Share on other sites
Briegel

Hello,

Can anyone tell me the best way to get the total amount of physical memory from a remote machine?

I need to get the memory details for 5000+ machines in our Active Directory and want to do it by querying the remote PC.

I know I can use "memgetstats" to get the memory details, but I need to execute this on the remote machine, or would it be easier to use WMI?

Thanks,

NiVZ

Here you can find a great UDF from JSThePatriot to take inventory from local and/or remote machines.

Computer Info UDF's

Enjoy it :)

Share this post


Link to post
Share on other sites
NiVZ

Thanks,

I actually got something working using WMI but I was using:

SELECT * from WIN32_LogicalMemoryConfiguration

and then getting the "TotalPhysicalmemory" value which wasn't very accurate, eg 2GB reported as 2014mb and 1GB reported as 992mb, etc

Now, having looked at that UDF I'm using:

SELECT * from Win32_PhysicalMemory

and then looping through each chip getting the "Capacity" value which works out correctly each time, eg 2GB reported as 2048 and 1GB reported as 1024, etc

Thanks again,

NiVZ

Edited by NiVZ

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.