Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thejesper/unexpected-restart-fighter
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.
https://github.com/thejesper/unexpected-restart-fighter
analysis diagnostics error-monitoring logs powershell restart troubleshooting windows
Last synced: 15 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/thejesper/unexpected-restart-fighter
- Owner: TheJesper
- License: mit
- Created: 2024-10-30T21:29:56.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-30T22:45:00.000Z (2 months ago)
- Last Synced: 2024-10-30T23:26:27.583Z (2 months ago)
- Topics: analysis, diagnostics, error-monitoring, logs, powershell, restart, troubleshooting, windows
- Language: PowerShell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Writing the updated README content to a file so the user can download it.
readme_content = """
# Unexpected Restart Fighter
A 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.
## Features
- Tracks recent unexpected shutdown and restart events in the last 20 days.
- Identifies errors and critical issues leading up to the last few minutes before each shutdown event.
- Provides a summary of hardware-related errors for easier diagnosis.
- Optionally shows additional error details with the `-Verbose` flag.
- Simple `-Help` option for guidance on usage.## Usage
### Running the Script
Run the script from PowerShell:
```powershell
.\unexpected-restart-fighter.ps1 [-Verbose] [-Help]
```