2013年7月30日 星期二

Get computer system infomation by command

Reference:
http://serverfault.com/questions/348973/remotely-check-amount-of-ram-on-a-computer-using-command-line
http://www.nextofwindows.com/how-to-find-out-bios-motherboard-and-cpu-info-from-command-line/
http://www.petri.co.il/command-line-wmi-part-2.htm#
http://social.technet.microsoft.com/Forums/windowsserver/en-US/d4e244f3-dc2d-483c-a905-d6e9a5037d74/wmic-query-for-remote-host-disks-memory-cpu
http://huangsb.blogspot.tw/2010/03/windows-grep-findstr.html

Get computer all information:
systeminfo /s:hostname
(hostname is the computer name. Ex: vega01)

Get computer model
systeminfo /s:hostname | findstr /c:"System Model"

Get RAM size
systeminfo /s:hostname | findstr /c:"Total Physical Memory"

Get CPU model
wmic /node:hostname cpu get name

Get disk size
wmic /node:hostname diskdrive get name, size, model

沒有留言:

張貼留言