Practical scripts, health checks, and automation tools designed by managed service providers who understand the daily grind. Download, deploy, and keep your clients' environments running smoothly.
Free, open-source scripts and utilities for MSPs. No signup required—just download and deploy.
PowerShell script for ConnectWise Automate. Checks sync status, KFM, stale data, and client heartbeat across all users.
Free dark web exposure scanner. Check if your email or domain appears in known data breaches and dark web leaks. No signup required.
Analyze DMARC aggregate reports with ease. Upload XML or ZIP files, visualize authentication results, and identify email spoofing threats. Runs entirely in your browser.
A comprehensive PowerShell script that runs as SYSTEM via ConnectWise Automate. For every logged-on user, it validates OneDrive for Business sync health without touching user files or making network calls.
-MaskEmailStatus line: ODSTATUS=OK | WARN | FAIL | NOUSER | ERROR
Exit codes: 0 = OK/NOUSER • 1 = WARN • 2 = FAIL • 3 = ERROR (the check itself could not complete — treat like FAIL)
Issue codes: NOT_RUNNING, NOT_SIGNED_IN, FOLDER_MISSING, KFM_OFF, NET_REDIRECT, STALE_<n>d, EMPTY, SCAN_LIMIT, LOCAL_SAVES, HUNG_<n>d, NO_LOGS, NO_PROFILE
Example: ODSTATUS=WARN | AzureAD/JRogan: KFM_OFF(Desktop,Documents) LOCAL_SAVES | Last=2026-11-20
Use -SingleLine for ConnectWise Automate Extra Data Fields (SQL-safe, max 250 chars).
# Basic health check
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\OneDriveHealthCheck.ps1
# Custom thresholds + event logging
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\OneDriveHealthCheck.ps1 -StaleDays 30 -RequireKFM -WriteEventLog
# Single-line output for Automate EDF
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\OneDriveHealthCheck.ps1 -SingleLine
# Recommended parameters for ConnectWise Automate (Execute Script step)
-SingleLine -MaskEmail -WriteEventLog
PowerShell 5.1+ • Runs as SYSTEM • No dependencies • MIT-style free to use
📄 Automate deployment guide (README) • 🔑 SHA256SUMS.txt
SHA-256: 04ad2634931913dc6ab6cb59f0b6610b399a1693fc66dd15fbd1e45306015398 (version 2026-11-26c)
Check the download matches the published hash before running it or pasting it into Automate. Run this in PowerShell from the folder you saved it to — it should print OK - hash matches.
$expected = '04ad2634931913dc6ab6cb59f0b6610b399a1693fc66dd15fbd1e45306015398'
$actual = (Get-FileHash .\OneDriveHealthCheck.ps1 -Algorithm SHA256).Hash
if ($actual -eq $expected) { 'OK - hash matches' } else { "MISMATCH - do not run. Got $actual" }
Verify before editing: re-saving the file in an editor that changes line endings will change the hash. Each new release gets a new hash, published here.
| Parameter | Default | Description |
|---|---|---|
-StaleDays | 30 | Flag if no OneDrive changes in this many days |
-LocalFileGraceDays | 7 | Flag local Desktop/Documents saves within this window |
-HeartbeatDays | 3 | Flag if client hasn’t written a log in this many days |
-MaxFilesToScan | 250,000 | Safety limit for folder scan |
-MaxScanSeconds | 180 | Time limit for the scan |
-RequireKFM | switch | Treat missing KFM as FAIL instead of WARN |
-MaskEmail | switch | Partially mask account emails in output |
-WriteEventLog | switch | Write result to Windows Application event log |
-SingleLine | switch | Output one SQL-safe line for Automate EDFs |
-MaxLength | 250 | Max chars for SingleLine output |