A lightweight .bat script that provides battery status, system details, and basic disk information using only native CMD tools, fully compatible with Windows XP through Windows 11.
- Detects Windows version automatically
- Generates
battery_report.html(on Windows 8+) - Displays:
- Battery percentage and status (Charging / Discharging)
- Computer name, OS version, architecture
- Manufacturer, model, processor, and installed RAM
- Approximate primary disk size in GB
- Skips unsupported features silently on older systems
- Does not require PowerShell or WMIC replacements
- Works entirely offline
- Great for diagnostics on legacy and modern systems
- Can be used from USB drives, recovery environments, or admin toolkits
- Safe for automation and deployment scripts
| Feature | Supported OS Versions |
|---|---|
battery_report.html |
Windows 8, 8.1, 10, 11 |
wmic diagnostics |
Windows XP → Windows 10 (and some early 11) |
| CMD core only | All versions XP → 11 |
- Download or clone this repo
- Run
battery_status_system_based.batas administrator - Battery report (if supported) will be saved to your Desktop
- System info will be displayed in the terminal
- On Windows 11 22H2 and later,
wmicis removed; only battery report will be available. - RAM and disk size are approximated for compatibility.
- Battery features may be unavailable on desktops or virtual machines.
This project is provided under the MIT License.
If this project saved you time or solved a problem, consider supporting development:


