← All TILs

windows

8 TILs filed under windows. Atom feed for this topic.

Finding and force-closing a locked file on a Windows SMB share - 2026-09-18

Someone leaves for the day with a spreadsheet still open over the network, or a desktop app crashes without releasing its file handle, and now everyone else gets: "The document filename is locked for editing by another user."

RDP into Windows 11 with a Microsoft account: the password, not the PIN, and `MicrosoftAccount\` - 2026-09-28

RDP (Remote Desktop Protocol, Microsoft's protocol for using another computer's desktop over the network) to a Windows 11 PC signed in with a Microsoft account usually fails for two reasons. RDP needs the account's password, not the Windows Hello PIN. (Windows Hello is the…

Oh My Posh in PowerShell and in WSL2 zsh, with one config file - 2026-09-28

Oh My Posh draws the same prompt in any shell from one JSON config. On a Windows machine with WSL2, that means PowerShell and the Linux zsh can share a prompt. There are two installs, one font, and one file. Tested with Oh My Posh 29.14, PowerShell 7.6 and zsh 5.9.

Installing PowerShell 7 on Windows, Debian, Ubuntu and RHEL, the way Microsoft documents it - 2026-09-29

PowerShell 7 (pwsh) is the cross-platform PowerShell. On Windows, it installs next to Windows PowerShell 5.1 (powershell.exe) rather than replacing it. On Linux, Microsoft's preferred source is its own package repository, packages.microsoft.com ("PMC"). Commands below are from…

Running Linux containers on Windows with wslc, the container CLI built into WSL - 2026-10-06

WSL 2 (Windows Subsystem for Linux) runs a real Linux kernel in a lightweight virtual machine on Windows. A newer WSL release adds wslc.exe, a container command line that ships with WSL itself: no Docker Desktop or separate engine to install. A container is a process isolated…

A lightweight graphical file manager in WSLg: Thunar on Ubuntu, RHEL 9 and NixOS - 2026-10-15

WSLg is the part of WSL2 that shows Linux graphical applications as ordinary Windows windows. It's included in WSL on Windows 11 and recent Windows 10 builds, and it only works with WSL2 distributions, not WSL1. A WSL distribution has no file manager by default. That matters as…

`.wslconfig` vs `wsl.conf`: which file sets what in WSL - 2026-11-01

I hadn't used a graphical Linux desktop since Mandrake, a Linux distribution from the late 1990s and early 2000s later renamed Mandriva. Linux has been terminals and servers for me since. So when a graphical tool wouldn't open in WSL2, I first looked for its switch in the wrong…

WSLg: "Missing X server or $DISPLAY" when a Linux GUI app won't open - 2026-11-01

I hadn't used a graphical Linux desktop since Mandrake, a Linux distribution from the late 1990s and early 2000s later renamed Mandriva. Linux has been terminals and servers for me since. So running one graphical tool in WSL2 meant learning where WSL's display server comes…