Update readme for locked script running

This commit is contained in:
2026-08-28 12:03:48 +03:00
parent c4dbaee0cb
commit 6b5d558fa2
+5
View File
@@ -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.