diff --git a/README.md b/README.md index 45e1083..fc0d7e6 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,11 @@ Both scripts self-elevate (relaunch as Administrator) if not already running ele ## Notes & Caveats - Requires Administrator rights (scripts self-elevate via UAC prompt). +- If you get "running scripts is disabled on this system", either run the script via + `powershell -ExecutionPolicy Bypass -File .\Test-BatteryDrain.ps1`, or once per user run + `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser`. If the files were + downloaded rather than created locally, also run + `Unblock-File -Path .\Test-BatteryDrain.ps1, .\Restore-PowerSettings.ps1`. - `Test-BatteryDrain.ps1` does **not** auto-restore settings when it finishes or is interrupted with Ctrl+C — always run `Restore-PowerSettings.ps1` afterward to revert the system to its normal power-saving behavior.