Blog Posts
Everything published on this blog since 2017, newest first. The SQL Server writing now lives at sqldba.blog.
Guides: Claude Code · PowerShell · WSL · Windows
-
PSReadLine Predictive IntelliSense: Show Suggestions as a List
Turn on PSReadLine predictive IntelliSense in PowerShell 7 with suggestions from your history shown as a list, keep it in your profile, and what Windows PowerShell 5.1 needs.
-
List Installed Programs with PowerShell
List installed programs with PowerShell from the Uninstall registry keys, search and export the list, use winget list for Store apps, and why Win32_Product is the one to avoid.
-
Copy Files to a Remote Host with PowerShell
Copy-Item has no -ComputerName parameter, which is why the command you copied off the internet fails. The working form is -ToSession with a PSSession, and here is how to do it for one host and for several.
-
Move a WSL Distro Off the C: Drive
A WSL distro is one big vhdx file, and by default it sits on C:. Move it to another drive with the WSL move command, or with export and import on older WSL, without losing what is inside it.
-
Get a File Hash in PowerShell (Verify a Download)
Get a file hash in PowerShell with Get-FileHash, compare it to the hash a publisher lists to verify a download, switch to MD5 or SHA512, and the algorithms PowerShell 7 dropped.
-
Find What Is Filling Your C: Drive with PowerShell
C: is nearly full and you do not know why. Read-only PowerShell commands to size every top-level folder, list the largest files, and check the usual culprits: WSL and Docker disks, temp folders, the Windows Update cache and the recycle bin.
-
Claude Code Hooks: Run a Check After Every Edit
A hook is a command Claude Code runs itself at a fixed point, every time, whatever the model decides. A PostToolUse hook on Windows that parses every .ps1 Claude writes and hands the errors straight back, plus the notification and block-the-file hooks.
-
Compact a WSL or Docker Desktop vhdx to Get Disk Space Back
C: is full and the biggest file is a WSL or Docker Desktop vhdx that never shrinks. Find it, prune inside, wsl –shutdown, compact it with diskpart, make it sparse, or move it to another drive.
-
Add an MCP Server to Claude Code
claude mcp add for a remote HTTP server and a local stdio one, the — separator, the 3 scopes and where each is stored, .mcp.json for the team, /mcp to check status and sign in, and the permission rule that stops the "use this tool?" prompts.