Skip to content

bradleymaina/hwcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

hwcheck

πŸ” Laptop Inspector β€” Portable Edition

All-in-one Windows laptop diagnostic tool β€” Run from a flash drive, no installation required.

Windows PowerShell License: MIT Portable


✨ What It Does

Laptop Inspector is a single-file, portable Windows diagnostic tool that performs a comprehensive hardware and software audit of any laptop. Just double-click LaptopInspector.bat on any Windows machine and get a full inspection report in seconds.

Perfect for:

  • πŸ›’ Buying a used laptop β€” verify specs before you pay
  • πŸ”§ IT technicians β€” quickly audit machines in the field
  • πŸ“Š Fleet management β€” track laptop health over time with CSV history
  • 🏫 Schools & offices β€” inspect donated or returned equipment

πŸš€ Features

πŸ–₯️ System Information

  • CPU model, cores, and threads
  • RAM capacity
  • GPU and driver version
  • Display resolution and refresh rate
  • Manufacturer, model, and serial number

πŸ”‹ Battery Health (Deep Analysis)

  • Current charge level
  • Battery chemistry (Li-ion, LiPo, etc.)
  • Design vs. full charge capacity
  • Wear level percentage
  • Cycle count
  • Power plan detection

πŸ’Ύ Storage Diagnostics

  • Physical disk detection (SSD/HDD)
  • S.M.A.R.T. status monitoring
  • Per-drive capacity and free space
  • Usage percentage alerts

πŸ›‘οΈ Security & OS

  • Windows activation status
  • Antivirus (Defender) status
  • Firewall profile detection
  • BitLocker encryption status
  • TPM version check
  • OS build and install date

🌐 Network

  • Wi-Fi adapter and signal strength
  • Ethernet adapter detection
  • Internet connectivity test with latency

πŸŽ›οΈ Peripherals

  • Webcam detection
  • Bluetooth adapter
  • Audio devices
  • USB device enumeration

πŸ“ˆ Performance

  • Running process count
  • Top 5 RAM consumers
  • Startup program audit
  • Critical system events (last 48 hours)

πŸ“ Reports (Auto-generated)

Format Description
TXT Full text report for archival
CSV Append-only history for tracking multiple inspections
HTML Beautiful, styled report that opens in any browser

🎯 Weighted Scoring System

Each check is weighted by importance:

Weight Checks
x3 Disk S.M.A.R.T. status
x2 CPU match, RAM, Battery level, Battery wear, Windows activation, System errors
x1 GPU, Resolution, Wi-Fi, Internet, Antivirus, Firewall, TPM, Webcam, Bluetooth, Audio, Storage capacity

Final Result:

  • 🟒 PASS β€” Score β‰₯ 80%
  • 🟑 WARNING β€” Score 60–79%
  • πŸ”΄ FAIL β€” Score < 60%

πŸ“¦ Usage

Option 1: Run from USB Flash Drive

  1. Copy LaptopInspector.bat to any USB flash drive
  2. Plug the USB into the target laptop
  3. Double-click LaptopInspector.bat
  4. Click START SCAN in the GUI
  5. Reports are saved to a Reports/ folder next to the script

Option 2: Run Directly

  1. Download LaptopInspector.bat
  2. Right-click β†’ Run as Administrator (recommended for full access)
  3. Click START SCAN

Command Line (Optional)

# Quick scan (skips slow checks like event log scanning)
powershell -ExecutionPolicy Bypass -File LaptopInspector.bat -Quick

# Full scan (default)
powershell -ExecutionPolicy Bypass -File LaptopInspector.bat -Full

Note: The script auto-elevates via PowerShell. Some checks (temperature, BitLocker, TPM) require Administrator privileges for full results.


πŸ–ΌοΈ GUI Interface

The tool features a modern dark-themed GUI built with WPF:

  • Left panel β€” System dashboard with key specs at a glance
  • Right panel β€” Real-time scrolling log with color-coded output
  • Progress bar β€” Tracks scan completion (10 phases)
  • Score display β€” Large result score with color coding
  • Report button β€” One-click access to the HTML report

πŸ“ Project Structure

LaptopInspector/
β”œβ”€β”€ LaptopInspector.bat    # The main script (self-contained)
β”œβ”€β”€ README.md              # This file
β”œβ”€β”€ LICENSE                # MIT License
β”œβ”€β”€ .gitignore             # Ignores generated reports
└── Reports/               # Auto-created on first run
    β”œβ”€β”€ report_YYYY-MM-DD_HH-mm-ss.txt
    β”œβ”€β”€ report_YYYY-MM-DD_HH-mm-ss.html
    └── history.csv

βš™οΈ Customization

Edit the $expected block at the top of the script to set your own target specs:

$expected = @{
    CPU = "i7"                    # CPU must contain this string
    RAM = 8                       # Minimum RAM in GB
    GPU = "Intel"                 # GPU must contain this string
    BATTERY = 40                  # Minimum battery percentage
    STORAGE_MIN_GB = 200          # Minimum total storage in GB
    RESOLUTION_MIN_WIDTH = 1920   # Minimum horizontal resolution
}

πŸ”’ Requirements

Requirement Details
OS Windows 10 / 11
PowerShell 5.1+ (pre-installed on Windows 10+)
Privileges Standard user (Admin recommended for full results)
Dependencies None β€” fully self-contained
Disk Space ~53 KB (single file)

🀝 Contributing

Contributions are welcome! Here are some ideas:

  • Add BIOS/UEFI version detection
  • Add RAM slot details (speed, type, slots used)
  • Add display panel info (IPS/TN, color depth)
  • Add keyboard backlight detection
  • Add Thunderbolt/USB-C port detection
  • Export reports as PDF
  • Multi-language support

How to Contribute

  1. Fork this repository
  2. Create a feature branch (git checkout -b feature/add-bios-check)
  3. Commit your changes (git commit -m 'Add BIOS version detection')
  4. Push to the branch (git push origin feature/add-bios-check)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for details.


⭐ Star This Repo

If this tool helped you, please give it a ⭐ β€” it helps others find it!


Laptop Inspector β€” Built with ❀️ for the IT community

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors