windows 远程获取硬盘和处理器规格的命令

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13774713/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 10:06:46  来源:igfitidea点击:

Command to get Hard disk & processor spec remotely

windowscmdwmic

提问by Aan

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

什么命令有助于在远程 Windows 机器中获取硬盘和处理器的信息?

回答by Nik Bougalis

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.

如果您可以依靠在 Windows Vista 或更高版本上运行,那么您可以使用 WMIC。有关 WMIC 的详细信息,请查看http://msdn.microsoft.com/en-us/library/windows/desktop/aa394531(v=vs.85).aspx

To get CPU information try wmic cpu

要获取 CPU 信息,请尝试 wmic cpu

To get hard disk information try either wmic diskdriveor wmic logicaldiskdepending on whether you want information of the disk devices or logical drives.

要获取硬盘信息,请尝试wmic diskdrivewmic logicaldisk取决于您是否需要磁盘设备或逻辑驱动器的信息。

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.txtand logicaldisk.txtat your convenience.

然后,您可以检查这些文件cpu.txtdiskdrive.txtlogicaldisk.txt在您方便的。

回答by huthifa

you can use this command: msinfo32

你可以使用这个命令:msinfo32

and then press Ctrl+R to put the computer IP that you want to connect

然后按Ctrl+R把你要连接的电脑IP

回答by Sean

I would use "systeminfo", that's what I would use to find most things about my computer

我会使用“systeminfo”,这就是我用来查找有关我计算机的大多数信息的信息