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
-
Generate a Random Password in PowerShell
Generate random passwords in PowerShell from a character set without look-alike characters, and the cryptographically secure RandomNumberGenerator method in PowerShell 7.4 and later.
-
Find and Edit Your PowerShell Profile ($PROFILE)
Find your PowerShell profile with $PROFILE, create it safely if it does not exist, edit and reload it, the different paths for Windows PowerShell 5.1 and PowerShell 7, and why New-Item -Force can wipe it.
-
Find Files by Extension in PowerShell
Find every file of one type in a folder and its subfolders with Get-ChildItem -Filter, newest first, several extensions at once, and a count and size per extension.
-
“claude is not recognized” on Windows: Fix the PATH (Claude Code)
Claude Code installed but PowerShell or CMD says claude is not recognized. Check that claude.exe exists, add its folder to your User PATH, restart the terminal, and what to do if it broke after an update.
-
Download a File with PowerShell (Invoke-WebRequest -OutFile)
Download a file with Invoke-WebRequest -OutFile and check it arrived, the 5.1 progress bar slowdown, saving to a folder in PowerShell 7, and checking the hash.
-
Install Claude Code on Windows, Native and in WSL
Install Claude Code on Windows with the one-line native installer or inside WSL: where claude.exe lands, the PATH fix, the first run and login, updates, and the settings.json keys worth setting on day 1.
-
Claude Code Only Keeps 30 Days of Transcripts
Claude Code silently deletes session transcripts after 30 days. Where the .jsonl files live, the cleanupPeriodDays setting in settings.json, and how to keep them without filling C:.
-
Get Folder Permissions in PowerShell with Get-Acl
Read folder permissions in PowerShell with Get-Acl, what the numbers 268435456 and -1610612736 mean, find permissions set by hand on subfolders, and why square brackets return nothing.
-
Try Catch in PowerShell: Why catch Does Not Run
A PowerShell catch block only runs on terminating errors. Use -ErrorAction Stop to catch cmdlet errors, catch specific exception types, and add finally.