174 lines
4.7 KiB
Batchfile
174 lines
4.7 KiB
Batchfile
@echo off
|
|
REM === System Information Tool ===
|
|
echo ========================================
|
|
echo System Information Tool
|
|
echo ========================================
|
|
echo.
|
|
echo Select information category:
|
|
echo.
|
|
echo [1] Quick Overview (System Summary)
|
|
echo [2] Hardware Information (CPU, RAM, Motherboard)
|
|
echo [3] Storage Information (Disks, Partitions)
|
|
echo [4] Network Information (IP, Adapters, Connections)
|
|
echo [5] Operating System Details
|
|
echo [6] Running Processes and Services
|
|
echo [7] Graphics Card Information
|
|
echo [8] Battery Status (Laptops only)
|
|
echo [9] Complete System Report (All Information)
|
|
echo [0] Export Report to File
|
|
echo.
|
|
set /p CHOICE="Enter your choice (0-9): "
|
|
|
|
echo.
|
|
echo ========================================
|
|
|
|
if "%CHOICE%"=="1" goto QUICK_OVERVIEW
|
|
if "%CHOICE%"=="2" goto HARDWARE
|
|
if "%CHOICE%"=="3" goto STORAGE
|
|
if "%CHOICE%"=="4" goto NETWORK
|
|
if "%CHOICE%"=="5" goto OS_INFO
|
|
if "%CHOICE%"=="6" goto PROCESSES
|
|
if "%CHOICE%"=="7" goto GRAPHICS
|
|
if "%CHOICE%"=="8" goto BATTERY
|
|
if "%CHOICE%"=="9" goto COMPLETE
|
|
if "%CHOICE%"=="0" goto EXPORT
|
|
goto INVALID
|
|
|
|
:QUICK_OVERVIEW
|
|
echo System Overview
|
|
echo ========================================
|
|
systeminfo | findstr /C:"Host Name" /C:"OS Name" /C:"OS Version" /C:"System Type" /C:"Total Physical Memory" /C:"System Manufacturer" /C:"System Model"
|
|
goto END
|
|
|
|
:HARDWARE
|
|
echo Hardware Information
|
|
echo ========================================
|
|
echo.
|
|
echo === Processor ===
|
|
wmic cpu get name,numberofcores,maxclockspeed
|
|
echo.
|
|
echo === Memory ===
|
|
wmic memorychip get capacity,speed,manufacturer
|
|
echo.
|
|
echo === Motherboard ===
|
|
wmic baseboard get manufacturer,product,version
|
|
goto END
|
|
|
|
:STORAGE
|
|
echo Storage Information
|
|
echo ========================================
|
|
echo.
|
|
echo === Disk Drives ===
|
|
wmic diskdrive get model,size,status
|
|
echo.
|
|
echo === Partitions and Free Space ===
|
|
wmic logicaldisk get deviceid,volumename,size,freespace,filesystem
|
|
goto END
|
|
|
|
:NETWORK
|
|
echo Network Information
|
|
echo ========================================
|
|
echo.
|
|
echo === IP Configuration ===
|
|
ipconfig
|
|
echo.
|
|
echo === Network Adapters ===
|
|
wmic nic get name,netconnectionstatus,speed
|
|
echo.
|
|
echo === Active Connections ===
|
|
netstat -an | findstr ESTABLISHED
|
|
goto END
|
|
|
|
:OS_INFO
|
|
echo Operating System Details
|
|
echo ========================================
|
|
systeminfo | findstr /C:"OS" /C:"System Boot Time" /C:"Windows Directory" /C:"System Directory" /C:"Boot Device"
|
|
echo.
|
|
echo === Installed Hotfixes ===
|
|
wmic qfe list brief
|
|
goto END
|
|
|
|
:PROCESSES
|
|
echo Running Processes and Services
|
|
echo ========================================
|
|
echo.
|
|
echo === Top Processes by Memory ===
|
|
tasklist /FI "STATUS eq running" | sort /R /+63
|
|
echo.
|
|
echo === Running Services ===
|
|
net start
|
|
goto END
|
|
|
|
:GRAPHICS
|
|
echo Graphics Card Information
|
|
echo ========================================
|
|
wmic path win32_VideoController get name,adapterram,driverversion,currentrefreshrate,videoprocessor
|
|
goto END
|
|
|
|
:BATTERY
|
|
echo Battery Status
|
|
echo ========================================
|
|
wmic path win32_battery get estimatedchargeremaining,estimatedruntime,batterystatus
|
|
if errorlevel 1 (
|
|
echo No battery detected - this might be a desktop computer.
|
|
)
|
|
goto END
|
|
|
|
:COMPLETE
|
|
echo Complete System Report
|
|
echo ========================================
|
|
echo Generating comprehensive system information...
|
|
echo This may take a moment...
|
|
echo.
|
|
systeminfo
|
|
echo.
|
|
echo ========================================
|
|
echo Hardware Details
|
|
echo ========================================
|
|
wmic cpu get name,numberofcores,maxclockspeed
|
|
wmic memorychip get capacity,speed
|
|
wmic diskdrive get model,size
|
|
wmic path win32_VideoController get name,adapterram
|
|
goto END
|
|
|
|
:EXPORT
|
|
echo Export System Report
|
|
echo ========================================
|
|
set FILENAME=SystemReport_%date:~-4,4%%date:~-7,2%%date:~-10,2%_%time:~0,2%%time:~3,2%.txt
|
|
set FILENAME=%FILENAME: =0%
|
|
echo Generating report and saving to: %FILENAME%
|
|
echo.
|
|
(
|
|
echo ========================================
|
|
echo SYSTEM INFORMATION REPORT
|
|
echo Generated: %date% %time%
|
|
echo ========================================
|
|
echo.
|
|
systeminfo
|
|
echo.
|
|
echo ========================================
|
|
echo HARDWARE INFORMATION
|
|
echo ========================================
|
|
wmic cpu get name,numberofcores,maxclockspeed
|
|
wmic memorychip get capacity,speed
|
|
wmic diskdrive get model,size
|
|
wmic path win32_VideoController get name,adapterram
|
|
echo.
|
|
echo ========================================
|
|
echo NETWORK INFORMATION
|
|
echo ========================================
|
|
ipconfig /all
|
|
) > %FILENAME%
|
|
echo.
|
|
echo Report saved successfully to: %FILENAME%
|
|
goto END
|
|
|
|
:INVALID
|
|
echo ERROR: Invalid selection! Please choose 0-9.
|
|
goto END
|
|
|
|
:END
|
|
echo.
|
|
echo ========================================
|
|
echo.
|
|
pause |