Author: Peter Whyte
-
WSL: The Complete Guide for Windows Admins
Every WSL guide on this site in one place: install, file access, managing distributions, restarting, and the commands worth memorising.
-
How to Move a WSL Distro to Another Drive
WSL installs onto C: by default and the virtual disk only grows. Moving a distribution to another drive used to be a three-step dance. It is now one command.
-
How to Export Data to CSV in PowerShell
Export-Csv turns any PowerShell output into a spreadsheet. The three things worth knowing are -NoTypeInformation, calculated properties, and what encoding does to Excel.
-
How to Back Up and Restore a WSL Distro
A WSL distribution is one command away from being a single tar file you can copy, archive, or restore onto another machine.
-
How to Rename Multiple Files at Once with PowerShell
Renaming a hundred files by hand is nobody’s afternoon. Rename-Item with a script block does it in one line, and -WhatIf shows you the result before it happens.
-
How to Limit WSL 2 Memory and CPU Usage
WSL 2 will happily take a large share of your RAM and not give it back quickly. A .wslconfig file in your user folder puts a ceiling on it.
-
How to Search for Text Inside Files with PowerShell
Select-String is the PowerShell answer to grep. It searches inside files, reports the line number, and works recursively across a whole folder tree.
-
How to Change the Default User in WSL
WSL logs you in as whichever account you created first. One command changes that, and it no longer needs you to edit a config file inside the distro.
-
How to Get a Folder Size in PowerShell
Windows Explorer will tell you a folder size eventually. PowerShell tells you in one line, and can do it for every folder on the drive at once.
Three guides collect the posts by the job you are doing rather than by date.
PowerShellFiles, CSVs, the firewall, scheduled tasks WSLInstalling it, distros, files across both worlds Windows AdministrationServers, domains, DNS, the tools worth havingThis site started as a SQL Server blog in 2017 and the archive is still here. The new SQL Server writing, and all the scripts, moved to a site of their own.
sqldba.blogScripts, error library, wait types, SSMS- CLAUDE.md: Project Memory for Claude Code
- Install Claude Code on Windows, Native and in WSL
- Claude Code Only Keeps 30 Days of Transcripts
- Claude Code Permissions: Allow and Deny Rules in settings.json
- Claude Code Hooks: Run a Check After Every Edit
- Compact a WSL or Docker Desktop vhdx to Get Disk Space Back
- AI (14)
- Linux & WSL (31)
- Microsoft SQL Server (51)
- Other (15)
- PowerShell (54)
- Windows Server Admin (40)