Add standalone Windows PowerShell reboot script#1
Open
arithmetic-zz wants to merge 1 commit into
Open
Conversation
Adds reboot_fritzbox.ps1, a Windows equivalent of the generated reboot_fritzbox.sh curl script. Sends the same TR-064 DeviceConfig1:Reboot SOAP command using HTTP Digest auth via System.Net.CredentialCache - no Python or extra modules required. Credentials are placeholders to fill in. Also adds reboot_fritzbox.cmd, a double-click launcher that runs the script with -ExecutionPolicy Bypass, and documents both in the README. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a ready-to-run Windows reboot path, mirroring the existing generated
reboot_fritzbox.shcurl script.reboot_fritzbox.ps1— sends the same TR-064DeviceConfig1:RebootSOAP command using HTTP Digest auth (System.Net.CredentialCache). No Python, no extra modules — runs with the PowerShell shipped in Windows 10/11. Host/port/user/password are placeholders at the top of the file. Includes ayes/yconfirmation prompt and[OK]/[ERROR]output (handles 401 auth failure and unreachable host), matching the style of the bash/Python scripts.reboot_fritzbox.cmd— double-click launcher that runs the.ps1with-ExecutionPolicy Bypass.Sets
ServicePointManager::Expect100Continue = $falseso behaviour matchescurlfor this small body.Testing
reboot_fritzbox.ps1.reboot_fritzbox.cmd(or runpowershell -NoProfile -ExecutionPolicy Bypass -File .\reboot_fritzbox.ps1).Note
reboot_fritzbox.ps1ships with placeholder credentials and is tracked in git. Once you fill in a real password it holds it in plain text — don't commit that change (noted in the README and the script header).🤖 Generated with Claude Code