A lot of times when I need to do remote sysadmin tasks on a server, it is really handy to know some commands to find out the hardware config remotely.
With linux, dmidecode is *THE BEST* by the way (had to say it).
However, I’m still finding my way around these Windows thingies. And of course it would be nice to find a dmidecode for Windows (listening anyone at Microsoft?). That being said, I don’t want to install third-party stuff if I can get around it. And have recently came across Windows powershell. WOOT WOOT! Installed automatically with Windows 2008 (with Windows 2003 I think it’s a free download from Microsoft)
Here we go!
Start Windows Powershell
Go to your “Start” Menu and type in “Powershell” and you will see entries show up. I’m on a 64bit Windows 2008 so I chose Windows Powershell (x86)
Windows Powershell Command To Type:
Here’s the full and readable command:
Get-WmiObject Win32_PhysicalMemory | select BankLabel,DeviceLocator,Capacity,Manufacturer,PartNumber,SerialNumber,Speed
Below is an example output
Why is this useful?
Well, for all the reasons you would want to know not just how much total memory is in there but what kind and how many? And in what slots?
In my example, I have two 4GB DIMMS in slots 1 and 3. So if I need to upgrade the memory it does help to know for example how many slots I have available.
Unfortunately, I haven’t found yet how to get this information. Like with dmidecode on Linux you can find out how many total banks there are, which are empty, which are full, and the specific manufacturer part of the memory. This Windows Powershell command doesn’t give you that, but it’s a start!
A very helpful link from “the man” himself: Technet Microsoft (is it just me that personsifies inanimate objects? Like our new Toyota Van’s name is “Clarabelle Anna” (C.Anna for short har har har) and I picture her being like Ms. Potts from Beauty and the Beast) (Did you notice the nested parentheses? Geek….)
Here’s the link: What Can I Do With Windows Powershell
I’m looking forward to perusing this!! It’s like a whole unix/linux shell/command line for windows WOOT!
And for those just getting started (like me) a really simple youtube tutorial here: