Collection of small PowerShell scripts and one-liners for Windows administration and personal automation.
SR: README.sr.md
This repo is for small, single-file scripts (typically < 200 lines) that solve a specific, narrow problem. Each script is standalone — copy it, read the header, run it.
Larger tools that grow into projects of their own get their own repo:
- PartitionPilot — interactive Windows disk partitioning wizard
When a script in this repo outgrows ~200 lines or starts needing its own README/tests, it's promoted to a standalone repo.
| Folder | What goes here |
|---|---|
| disk/ | Disk and partition utilities |
| files/ | File renaming, deduplication, archiving, format conversion |
| network/ | Wi-Fi, DNS, ports, network info |
| system/ | Windows config, services, registry, updates |
| dev/ | Developer helpers — git, env vars, paths |
Every script is a standalone .ps1 file. To run:
& "C:\path\to\windows-tools\disk\clean-recycle-bin.ps1"Each script has a .SYNOPSIS and .EXAMPLE header — read it before running.
If a script makes changes to your system, it usually supports -DryRun (or -WhatIf).
- PowerShell 5.1+ compatible (works on stock Windows 10/11).
- UTF-8 with BOM for files with non-ASCII content.
- Verb-Noun naming for functions where applicable.
- Comment-based help (
<# .SYNOPSIS ... #>) at the top of every script. - Idempotent when possible — running twice should be safe.
PRs welcome for new scripts. Keep them small, readable, and self-documenting. If your script grows beyond ~200 lines or needs multiple files, suggest it as its own repo instead.
MIT — see LICENSE.