Using WMI and/or remote registry to find available memory slots

windows-server-2008wmi

Certain monitoring programs such as Spiceworks list not only the memory sticks in use in a machine, but also somehow show which specific slots on the board are in use and which is using them. With WMI I can obtain a total number of slots and also I can get a list of all of the devices, but the "DeviceLocator" field in Win32_PhyiscalMemory seems cryptic and can be completely different from motherboard to motherboard.

My question is with WMI and/or remote registry, how can I find out which specific slots are in use like Spiceworks does? I'm developing a simple script to easily find all this information in a somewhat large network with many different hardware platforms, but all running Windows Server.

Best Answer

What about using WMIC MEMORYCHIP? There are quite a few options available under the diffent sub-commands (and sub-sub-commands for that matter.) Click HERE for a bit more of a walkthrough.