A personal collection of sysadmin, diagnostic, and automation scripts — across operating systems, components, and software. Each script is self-contained and documented in its own header.
Scripts are filed by platform first, then by component or software, so anything new has an obvious home and the tree stays browsable as it grows.
scripts/
├── windows/ # PowerShell, batch, Windows-specific tooling
│ └── rds/ # Remote Desktop Services
├── linux/ # bash, systemd, distro tooling
├── macos/ # zsh/bash, launchd, Apple-specific tooling
├── cross-platform/ # runs anywhere (Python, portable shell, etc.)
└── cloud/ # AWS / Azure / GCP / M365 and other hosted platforms
Add a new category by adding a folder. Group by the thing the script is about (the OS, the role, the product), not by language.
Open the file first — every script documents its purpose, parameters, and how to
run it in a header comment. Windows PowerShell scripts generally expect an
elevated session; read the .SYNOPSIS/.DESCRIPTION before running.
Some of these scripts collect diagnostic data — event logs, network config,
installed software, certificates, user and host identifiers. That collected output
is often sensitive and is not meant to live in this repo. .gitignore excludes
the common output folders and archives, but the rule of thumb stands: review and
scrub any collected output before sharing it, and never commit a real run.
MIT — use freely, no warranty.
| Platform | Area | Script | Purpose |
|---|---|---|---|
| Windows | RDS | Collect-RDSDiagnostics.ps1 |
Collects RDS diagnostic data (event logs, session timeline, disconnect reason codes, config) for analyzing session-disconnect issues. Text-first output for AI or human review. |