Author: Peter Whyte
-
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.
-
List Installed Windows Updates with Get-HotFix
List installed Windows updates with Get-HotFix, newest first, check whether one KB is installed, filter by date, and why Get-HotFix shows fewer updates than Update history.
-
Write-Host vs Write-Output in PowerShell
Write-Host prints to the screen and cannot be captured in a variable or pipeline; Write-Output sends objects down the pipeline. See the difference and which one to use.
-
Fix “A positional parameter cannot be found that accepts argument” in PowerShell
PowerShell says a positional parameter cannot be found that accepts argument. Read which argument it names, then check for commands joined on one line, a path with a space and no quotes, a parameter name without its dash, or a list without commas.
-
Time a Command in PowerShell with Measure-Command
Time a command in PowerShell with Measure-Command, get just the seconds, average several runs, see the output it hides, and why Seconds is not the whole time.
-
Claude Code Permissions: Allow and Deny Rules in settings.json
Stop answering the same permission prompt. The allow, ask and deny lists in settings.json, the rule syntax with the space before the *, PowerShell rules, protecting .env, the 3 files the rules live in, and the modes behind Shift+Tab.
-
Unblock a Downloaded File in PowerShell (Unblock-File)
Remove the mark of the web from downloaded scripts and files with Unblock-File, see the Zone.Identifier stream with Get-Item -Stream, and unblock a whole folder.