Skip to content

Instantly share code, notes, and snippets.

@Youka
Last active December 4, 2023 03:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Youka/cd472b729f8b06413aa2a1fcbb9c62cc to your computer and use it in GitHub Desktop.
Save Youka/cd472b729f8b06413aa2a1fcbb9c62cc to your computer and use it in GitHub Desktop.
Simple batch file for system information on windows
@echo off
rem Resize window for following masses of content
mode 200,50
rem Get CPU information
echo # CPU
wmic CPU GET AddressWidth,CurrentClockSpeed,CurrentVoltage,L2CacheSize,L3CacheSize,LoadPercentage,Manufacturer,Name,NumberOfCores,NumberOfLogicalProcessors
echo.
rem Get graphics card information
echo # VIDEO
wmic PATH Win32_videocontroller GET AdapterRAM,CurrentRefreshRate,Description,DriverVersion,VideoModeDescription
echo.
rem Get main memory information
echo # MEMORY
wmic MEMORYCHIP GET BankLabel,DataWidth,Manufacturer,PartNumber,Capacity,Speed,TypeDetail
echo.
rem Get disks information
echo # VOLUME
wmic VOLUME GET BlockSize,Capacity,DriveLetter,FileSystem,FreeSpace,IndexingEnabled,Label,MaximumFileNameLength
echo.
rem Get operating system information
echo # OS
wmic OS GET Caption,CodeSet,CSName,InstallDate,Locale,NumberOfProcesses,OSArchitecture,SerialNumber,SystemDirectory,Version
echo.
rem Get autostart programs list
echo # STARTUP
wmic STARTUP GET Caption,Command,Location
rem Keep window open until key is pressed
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment