{"id":18084090,"url":"https://github.com/thejesper/unexpected-restart-fighter","last_synced_at":"2026-04-16T11:01:46.133Z","repository":{"id":260364935,"uuid":"881068751","full_name":"TheJesper/unexpected-restart-fighter","owner":"TheJesper","description":" With this setup, the script will check for all unexpected shutdowns over the last 20 days, include verbose error logging if enabled, and handle both logging and output in a structured, user-friendly way. The batch file and `.gitignore` configuration help keep the setup clean and portable.","archived":false,"fork":false,"pushed_at":"2024-10-30T22:45:00.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T16:49:25.976Z","etag":null,"topics":["analysis","diagnostics","error-monitoring","logs","powershell","restart","troubleshooting","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheJesper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-30T21:29:56.000Z","updated_at":"2024-10-30T22:45:03.000Z","dependencies_parsed_at":"2024-10-30T23:36:38.479Z","dependency_job_id":null,"html_url":"https://github.com/TheJesper/unexpected-restart-fighter","commit_stats":null,"previous_names":["thejesper/unexpected-restart-fighter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheJesper/unexpected-restart-fighter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheJesper%2Funexpected-restart-fighter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheJesper%2Funexpected-restart-fighter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheJesper%2Funexpected-restart-fighter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheJesper%2Funexpected-restart-fighter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheJesper","download_url":"https://codeload.github.com/TheJesper/unexpected-restart-fighter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheJesper%2Funexpected-restart-fighter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281381647,"owners_count":26491160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analysis","diagnostics","error-monitoring","logs","powershell","restart","troubleshooting","windows"],"created_at":"2024-10-31T15:05:41.897Z","updated_at":"2025-10-28T03:50:49.029Z","avatar_url":"https://github.com/TheJesper.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Writing the updated README content to a file so the user can download it.\n\nreadme_content = \"\"\"\n\n# Unexpected Restart Fighter\n\nA PowerShell script designed to diagnose and log unexpected shutdowns, restarts, and crashes on Windows systems. This script tracks recent shutdown events and logs critical errors leading up to these events to help identify potential hardware or software issues.\n\n## Features\n\n- Tracks recent unexpected shutdown and restart events in the last 20 days.\n- Identifies errors and critical issues leading up to the last few minutes before each shutdown event.\n- Provides a summary of hardware-related errors for easier diagnosis.\n- Optionally shows additional error details with the `-Verbose` flag.\n- Simple `-Help` option for guidance on usage.\n\n## Usage\n\n### Running the Script\n\nRun the script from PowerShell:\n\n```powershell\n.\\unexpected-restart-fighter.ps1 [-Verbose] [-Help]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejesper%2Funexpected-restart-fighter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthejesper%2Funexpected-restart-fighter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejesper%2Funexpected-restart-fighter/lists"}