Windows & Linux · PowerShell Troubleshooting Scripts

PowerShell Troubleshooting Scripts

A set of PowerShell scripts built to automate system diagnostics and streamline IT troubleshooting across Windows environments.

View this project on GitHub

1. Network Connectivity Troubleshooting Script

Tests adapters, gateway reachability, and DNS resolution, logging all results to a report file.

Network troubleshooting script in PowerShell ISE
Network Troubleshooting Script
Network troubleshooting PowerShell log output
Network Troubleshooting Output

Automation

This script is scheduled using a PowerShell Scheduled Job that runs daily at 9:00 AM.

Network Connectivity Troubleshooter Scheduled Job
Network Connectivity Troubleshooter Scheduled Job

2. Disk Space and Drive Health Check

Checks all local drives for free space and exports low-space results to CSV for documentation.

Disk health check script in PowerShell ISE
Disk Space and Drive Health Script

Automation

Automated using a PowerShell Scheduled Job that performs daily disk health checks.

Disk Health Check Scheduled Job
Disk Health Check Scheduled Job

3. Windows Service Status Troubleshooter

Monitors and restarts critical Windows services like Spooler, WinRM, and BITS, saving results to a log file.

Windows Service Troubleshooter script
Windows Service Troubleshooter Script

Automation

Scheduled as a daily PowerShell job that automatically checks and restores essential Windows services.

Windows Service Troubleshooter Scheduled Job
Windows Service Status Troubleshooter Scheduled Job

4. Event Log Error Scanner

Scans the System event log for errors within the last 24 hours and exports results for analysis.

PowerShell event log scanner script
Event Log Scanner Script
Event log scanner results
Event Log Scan Results

Automation

Automated through a PowerShell Scheduled Job that runs each morning to capture and log error events.

Event Log Error Scanner Scheduled Job
Event Log Error Scanner Scheduled Job

5. User Profile or Login Issue Troubleshooter

Finds corrupted or missing user profile paths and detects registry entries with .bak suffixes.

PowerShell user profile troubleshooter
User Profile Troubleshooter Script
User profile troubleshooting PowerShell output
User Profile Troubleshooter Output

Automation

Scheduled daily using PowerShell Scheduled Jobs to automatically identify and log user profile issues.

User Profile Troubleshooter Scheduled Job
User Profile or Login Issue Troubleshooter Scheduled Job

6. Windows Update and Compliance Check

Lists installed updates, identifies failed patches, triggers scans, and logs compliance reports.

Windows Update PowerShell script
Windows Update Compliance Script
Windows update log output example
Windows Update Log Output

Automation

Configured to run automatically through a PowerShell Scheduled Job that performs daily update scans and logs system status.

Windows Update Compliance Check Scheduled Job
Windows Update and Compliance Check Scheduled Job

Automation Summary

All troubleshooting scripts are automated using PowerShell Scheduled Jobs, each configured to run daily at 9:00 AM. This ensures proactive system monitoring, regular logging, and simplified maintenance without using Task Scheduler.

List of all registered PowerShell scheduled jobs
Overview of All PowerShell Scheduled Jobs

Back to Home

PowerShell is a trademark of Microsoft Corporation. This content is for educational purposes and is not affiliated with or endorsed by Microsoft.