Windows operating system have a lot of third party tools used to get detailed system information like operating system, version, boot time, processor etc. We will look simple single command systeminfo
to get detailed system information.
Windows操作系统有很多第三方工具,用于获取详细的系统信息,例如操作系统,版本,启动时间,处理器等。我们将使用简单的单个命令systeminfo
来获取详细的系统信息。
清单信息 (List Information)
We will just issue the systeminfo
command to get information about the computer.
我们将只发出systeminfo
命令来获取有关计算机的信息。
$ systeminfo

We will get following information about the computer.
我们将获得有关计算机的以下信息。
Host Name
Host Name
OS Name
OS Name
OS Version
OS Version
OS Manufacturer
OS Manufacturer
OS Configuration
OS Configuration
OS Configuration
OS Configuration
- OS Build Type 操作系统构建类型
- Original Install Data原始安装数据
- System Boot Time系统启动时间
- System Manufacturer系统制造商
- System Model系统型号
- PRocessors处理器
- Windows DirectoryWindows目录
- System Directory系统目录
- Boot Device启动装置
- System Locale系统区域设置
- Input Locale输入语言环境
- Time Zone时区
- Total Memory总内存
- Available Memory有效内存
- Domain域
- Page File Location页面文件位置
- Logon Servers登录服务器
- Hotfixes修补程序
- Network Cards网卡
在表中列出信息(List Information In Table)
System information can be listed in table format with the following command.
可以使用以下命令以表格格式列出系统信息。
$ systeminfo /FO TABLE

以CSV格式列出信息(List Information As CSV)
Another format for structured data reading is CSV.
用于结构化数据读取的另一种格式是CSV。
$ systeminfo /FO CSV

将输出重定向到文件(Redirect Output To A File)
While using table and csv formatted output saving output to a file is more beneficial and useful. We will redirect CSV output to a file named systeminfo.txt
where same thing can be done for the TABLE format.
使用表和csv格式的输出时,将输出保存到文件中会更加有益和有用。 我们将CSV输出重定向到名为systeminfo.txt
的文件,其中可以对TABLE格式执行相同的操作。
$ systeminfo /FO CSV > systeminfo.txt