SYSTEMINFO (System Information)

Maintained on

Sometimes you need to check your PC’s specs, the OS version, or the installed hotfixes.

The SYSTEMINFO command lists system information for a Windows PC in one place. It reports the OS version and build number, installed memory, last boot time, and installed updates (KB numbers), and you can save the output from a batch file as a record.

It takes a while to run

SYSTEMINFO collects data from WMI and other sources, so it can take anywhere from a few seconds to tens of seconds to print its result. Avoid calling it repeatedly in a batch file; run it once and reuse the output through a variable or a file.

Basic Usage

systeminfo
- □ ×
Command Prompt Icon
Command Prompt
Microsoft Windows [Version xx.x.xxxxx.xxx]
(c) 2026 Ribbit App Development All rights reserved.
 
C:\users\user>systeminfo
Host Name: DESKTOP-USER
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22631 N/A Build 22631
OS Manufacturer: Microsoft Corporation
System Model: ASUS TUF Gaming
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: AMD64 Family 25 Model 97
Total Physical Memory: 32,604 MB
Available Physical Memory: 18,234 MB
Original Install Date: 1/15/2024, 10:30:45 AM
System Boot Time: 3/10/2026, 9:15:22 AM
C:\users\user>

Main Fields

FieldDescription
Host NameComputer name
OS NameName of the OS
OS VersionOS version including the build number
System ManufacturerPC manufacturer
Processor(s)CPU information
Total Physical MemoryTotal installed memory
Network Card(s)Network adapter information
Hyper-V RequirementsVirtualization support
Hotfix(s)Installed Windows updates
Original Install DateWhen the OS was installed
System Boot TimeWhen the PC was last started

Extracting Specific Information

The SYSTEMINFO output is long, so it helps to combine it with findstr and extract only what you need.

Field names depend on the display language

Field names such as “OS Name” and “System Boot Time” change with the Windows display language. The findstr search strings below are for English Windows; on a Japanese system the fields appear as “OS 名” and “システム起動時間”. If your script has to work on any language, consider the PowerShell approach described later.

Check OS Information

Using /B in findstr matches only at the start of a line, which prevents lines that contain “OS” in the middle, such as BIOS Version, from slipping in.

systeminfo | findstr /B /C:"OS"
- □ ×
Command Prompt Icon
Command Prompt
Microsoft Windows [Version xx.x.xxxxx.xxx]
(c) 2026 Ribbit App Development All rights reserved.
 
C:\users\user>systeminfo | findstr /B /C:"OS"
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22631 N/A Build 22631
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Workstation
OS Build Type: Multiprocessor Free
C:\users\user>
おすすめ書籍※ 広告を含む場合があります
中小企業経営者のためのRPA入門 RPA導入を成功させる方法

中小企業経営者のためのRPA入門 RPA導入を成功させる方法

60分でわかる! AIエージェント 超入門

60分でわかる! AIエージェント 超入門

コマンドラインの黒い画面が怖いんです。

コマンドラインの黒い画面が怖いんです。

知識・才能ゼロでもらく~に月10万円稼ぐ! よくわかるAI副業超入門

知識・才能ゼロでもらく~に月10万円稼ぐ! よくわかるAI副業超入門

Check Memory Information

systeminfo | findstr /C:"Memory"

Check the Boot Time

systeminfo | findstr /C:"Boot Time"
- □ ×
Command Prompt Icon
Command Prompt
Microsoft Windows [Version xx.x.xxxxx.xxx]
(c) 2026 Ribbit App Development All rights reserved.
 
C:\users\user>systeminfo | findstr /C:"Boot Time"
System Boot Time: 3/10/2026, 9:15:22 AM
C:\users\user>
チェック

To see when the PC was last started, systeminfo | findstr /C:"Boot Time" gives a quick answer. It is also handy for checking server uptime. Note that on PCs with Fast Startup enabled, a shutdown does not fully power off the machine, so the boot time may not match the time you actually turned the PC on.

Main Options

OptionDescription
/FO formatSpecifies the output format (TABLE / LIST / CSV)
/NHHides the header (TABLE and CSV only)
/S computerRetrieves information from a remote computer
/U user /P passwordAccount used for the remote connection (with /S)

Specifying the Output Format

Use the /FO option to change the output format.

systeminfo /fo csv > system_info.csv
FormatOptionDescription
Table/FO TABLETable format (default)
List/FO LISTList format
CSV/FO CSVCSV format

Practical Examples

Save System Information to a File

@echo off
setlocal

set OUTPUT=C:\Logs\sysinfo_%COMPUTERNAME%.txt

echo Collecting system information...
systeminfo > "%OUTPUT%"
echo Saved to: %OUTPUT%

endlocal

List Installed Hotfixes

systeminfo | findstr /R /C:"KB[0-9]"

This shows the KB numbers of installed Windows updates (hotfixes). Searching for just "KB" can also match unrelated text, so this example uses a regular expression to keep only lines where KB is followed by digits.

Get Information from a Remote Computer

systeminfo /s SERVER01

Running it against a remote PC requires administrator rights on the target and a firewall configuration that allows remote management.

Getting It with PowerShell

PowerShell’s Get-ComputerInfo lets you pull out only the values you need by property name, which is the same regardless of the OS display language.

powershell -NoProfile -Command "Get-ComputerInfo -Property OsName,OsVersion,OsLastBootUpTime"

This is useful when a batch file needs the boot time independent of the language.

Other commands that show system information.

CommandInformation shown
hostnameComputer name
whoamiCurrent user name
verWindows version
ipconfigNetwork settings

Summary

The SYSTEMINFO command shows hardware information, OS information, network settings, and more in one go. Combined with findstr, you can efficiently extract just the information you need.

Practice Quiz

Practice Problem

Which command correctly shows when the PC was last started (on English Windows)?

回答がサーバーに送信されることはありません
#Command Prompt #Batch File #SYSTEMINFO #Windows #Command