Command Prompt Commands to Check Laptop Battery Health on Windows

Get read-only cmd.exe commands to check laptop battery health on Windows, plus a plain reading of your battery report, wear math and next steps.

Agent prompt for ChatGPT and Claude

You get: Commands to run, how to read the report and findings from my data

The prompt

Prompt
Act as a Windows support engineer who works from the command line.

My laptop: . The problem: . Help me check battery health using Command Prompt (cmd.exe), not PowerShell. If you run as an agent in Cursor or another tool's terminal, propose each command and wait for my approval before running it.

Before answering, ask me up to 3 short numbered questions (for example, whether I can open Command Prompt as administrator) and wait. If I paste numbers from a battery report, use them.

Rules:
1. Use only read-only commands, such as powercfg /batteryreport. Never change power plans, drivers or registry settings.
2. Do not invent commands or flags. If unsure, tell me to run the command with /? and check what my Windows version supports.
3. Show the wear math: full charge capacity divided by design capacity, using only my numbers.
4. Do not present fixed health thresholds as rules; describe what to compare and how to track the trend.
5. Call possible causes "likely contributors to check" unless my data shows them.
6. Never edit project files, commit or push.

Output format:
1. Commands to run (table: Command | What it shows | Admin needed?)
2. How to read the report (3-5 bullets)
3. Findings from my data (or "No data pasted yet")
4. Likely contributors to check
5. Next steps (numbered)

End by listing your assumptions and what information is missing.

Example output

Example for: laptop_and_os = 3-year-old 14-inch business laptop on Windows 11 Pro, battery_symptom = drops from 100% to 20% in about 2 hours while running Docker Desktop and a dev server; answers: 1) yes, admin access, 2) design capacity 56,000 mWh, full charge capacity 41,440 mWh, 3) cycle count 412.

1. Commands to run
CommandWhat it showsAdmin needed?
powercfg /batteryreport /output "%USERPROFILE%\battery-report.html"Design vs full charge capacity, cycle count, recent usage and capacity historyNo
start "" "%USERPROFILE%\battery-report.html"Opens the report in your browserNo
powercfg /requestsApps or drivers currently keeping the display or system awakeYes
powercfg /energy /output "%USERPROFILE%\energy-report.html"Runs a short trace and lists power efficiency warningsYes
powercfg /sleepstudyDrain during sleep on Modern Standby devices only (check in your version with powercfg /?)Yes
2. How to read the report
  • Installed batteries: compare DESIGN CAPACITY with FULL CHARGE CAPACITY.
  • Battery capacity history: look for a steady decline versus a sudden drop.
  • Recent usage: shows when the laptop was on battery and how fast it drained.
  • Battery life estimates: compares estimated runtime now versus at design capacity.
  • Cycle count may be blank on some laptops; that is normal for some firmware.
3. Findings from my data
  • Full charge capacity / design capacity = 41,440 / 56,000 = 74.0%.
  • Wear = 100% - 74.0% = 26.0%, so a full charge holds about 26% less energy than when new.
  • 412 cycles over about 3 years fits gradual wear, not a sudden fault.
  • Capacity loss alone explains part of the shorter runtime, but not necessarily all of it.
4. Likely contributors to check
  • Docker Desktop and the dev server: likely contributors to check. No CPU data was provided, so open Task Manager, Processes tab, and sort by Power usage while they run.
  • Display brightness and refresh rate: high settings raise drain noticeably.
  • Wake requests: anything listed by powercfg /requests that should not be there.
5. Next steps
  1. Run the battery report again in 30 days and compare full charge capacity.
  2. Measure runtime once with Docker stopped to see how much your workload adds.
  3. If your manufacturer provides a charge limit setting in its support app, consider using it while plugged in at a desk.
  4. Share the 74.0% figure and report file with IT if you want a replacement quote.

Assumptions and missing info: I assumed the numbers came from a single recent report. Missing: CPU and power usage per process, screen brightness, and whether the 2-hour figure came from one day or several.

Written by AI from this prompt. Your results will vary.

How to use this prompt

  1. Fill in your laptop and Windows version, and describe the battery problem in one line.
  2. Paste the prompt into ChatGPT, Claude, Gemini or Cursor's agent chat and answer its questions.
  3. Run the suggested commands in Command Prompt yourself, then paste the capacity numbers back.
  4. Check the wear math against your own report and ask follow-ups on anything unclear.
Who it’s for:
Developers and Windows laptop users comfortable with a terminal
What you get:
A list of read-only Command Prompt commands, a plain reading of your battery report, the wear calculation from your numbers, and next steps.

Use cases

  • A developer laptop that now lasts 2 hours while running Docker and a local dev server
  • Checking a used laptop's battery capacity before buying it
  • Deciding whether to ask IT for a battery replacement with numbers to back it up
  • Tracking battery wear month to month on a work machine

Works well with

  • Claude: careful with not overclaiming causes from limited data
  • ChatGPT: clear step-by-step command explanations
  • Cursor agent: can propose commands in its terminal and wait for approval

Try another example

The same prompt filled in for a different situation.

Act as a Windows support engineer who works from the command line.

My laptop: gaming laptop with a 15.6-inch screen on Windows 10 Home. The problem: battery stops charging at 60% and the charge icon shows plugged in, not charging. Help me check battery health using Command Prompt (cmd.exe), not PowerShell. If you run as an agent in Cursor or another tool's terminal, propose each command and wait for my approval before running it.

Before answering, ask me up to 3 short numbered questions (for example, whether I can open Command Prompt as administrator) and wait. If I paste numbers from a battery report, use them.

Rules:
1. Use only read-only commands, such as powercfg /batteryreport. Never change power plans, drivers or registry settings.
2. Do not invent commands or flags. If unsure, tell me to run the command with /? and check what my Windows version supports.
3. Show the wear math: full charge capacity divided by design capacity, using only my numbers.
4. Do not present fixed health thresholds as rules; describe what to compare and how to track the trend.
5. Call possible causes "likely contributors to check" unless my data shows them.
6. Never edit project files, commit or push.

Output format:
1. Commands to run (table: Command | What it shows | Admin needed?)
2. How to read the report (3-5 bullets)
3. Findings from my data (or "No data pasted yet")
4. Likely contributors to check
5. Next steps (numbered)

End by listing your assumptions and what information is missing.

Tips and common edits

Why this works

  • It restricts the model to read-only cmd.exe commands, so nothing changes power plans, drivers or the registry.
  • It asks for the wear math from your own numbers instead of generic health thresholds the model might make up.
  • Labeling causes as 'likely contributors to check' stops the model from blaming apps without CPU or power data.

Use when a Windows laptop battery drains fast or won't hold charge. Have Command Prompt open and, ideally, your battery report numbers. Works in ChatGPT, Claude, Gemini or Cursor's agent.

Common edits

  • Swap 'Command Prompt (cmd.exe), not PowerShell' for 'PowerShell' if that is the shell you use.
  • Add 'compare with my report from last month' and paste both sets of capacity numbers to track the trend.

Reuse it: Use in a workflowAdapt in the builder

More in Cursor

Open Command Prompt as Administrator and Plan Admin-Only Setup Steps in Cursor

Get the ways to open Command Prompt as administrator on your Windows version, plus a repo-based list of which setup commands need elevation, with verify and undo.

Windows Command Prompt Steps to Recover a Corrupted or RAW USB Drive

Get an ordered, risk-labeled list of Windows Command Prompt steps to diagnose a failing USB drive and recover files before you change or format anything.

Coding

Paste a Bug Report, Get a Test-First Fix in Any AI Chat

Get a failing test that reproduces your pasted bug, the root cause, the smallest fix as a diff and its risks, in any chat assistant with no repository access needed.

Coding

Root Cause Analysis from Stack Trace and Logs

Turns an error report, stack trace, and logs into ranked root-cause hypotheses. Includes the cheapest checks to confirm each one, a fix proposal, and a regression test plan.

Draft Reproducible Bug Reports from Error Stack Traces

Turn messy error logs and stack traces into structured, actionable bug reports with minimal reproduction scripts.

AI Coding AgentsClaude Code

Generate Reproducible Bug Fix Specs for Coding Agents

Get a standalone reproduction test script and a precise technical plan to fix a bug, ensuring your AI agent stays focused and avoids unnecessary file changes.