Command to get Hard disk & processor spec remotely

Aan picture Aan · Dec 8, 2012 · Viewed 76.2k times · Source

What is the command(s) helps to get information of the Hard disk & processor in a remote windows machine ?

Answer

Nik Bougalis picture Nik Bougalis · Dec 8, 2012

If you can rely on running on Windows Vista or later, then you can use WMIC. For details on WMIC, check out http://msdn.microsoft.com/en-us/library/windows/desktop/aa394531(v=vs.85).aspx.

To get CPU information try wmic cpu

To get hard disk information try either wmic diskdrive or wmic logicaldisk depending on whether you want information of the disk devices or logical drives.

Since the lines will often wrap, making it difficult to read in a console window, try this variant to redirect the output to text files:

wmic cpu > cpu.txt
wmic diskdrive > diskdrive.txt
wmic logicaldisk > logicaldisk.txt

You can then examine the files cpu.txt, diskdrive.txt and logicaldisk.txt at your convenience.