Skip to content

Instantly share code, notes, and snippets.

View erwinkersten's full-sized avatar
🚀

Erwin Kersten erwinkersten

🚀
View GitHub Profile
@erwinkersten
erwinkersten / WSL2_on_W2k22.md
Last active May 15, 2025 06:41
Install WSL2 on Windows Server 2022

Install WSL2 on Windows Server 2022

When installing a WSL2 distribution on Windows Server 2022 you may receive the error An error occurred during installation. Distribution Name: 'Ubuntu 22.04 LTS' Error Code: 0x8000ffff. First you need to update WSL after enabling the feature.

Steps for a fresh installation:

  1. Enable Windows Subsystem for Linux
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  1. Reboot
@erwinkersten
erwinkersten / winget-cli_on_W2k22.md
Last active May 30, 2026 08:11
Install WIndows Package Manager (winget) on Windows Server 2022

Install Windows Package Manager (winget) on Windows Server 2022

Update: the easiest current method is to use the community winget-install script from PowerShell Gallery. This script installs WinGet and required dependencies automatically.

Run the following from an elevated PowerShell session:

Install-Script -Name winget-install -Force
winget-install -Force
@erwinkersten
erwinkersten / Windows_Terminal_on_W2k22.md
Last active July 4, 2024 08:01
Install Windows Terminal on Windows Server 2022

Install Windows Terminal on Windows Server 2022

  1. Download and install c-runtime-packages-desktop-bridge
  2. Download and install microsoft-ui-xaml
  3. Download and install Microsoft.WindowsTerminal

Execute the following in Windows PowerShell (Powershell 7 doesn't support the Appx module)

# Update versions, see https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge#how-to-install-and-update-desktop-framework-packages
@erwinkersten
erwinkersten / Update-AUPackages.md
Last active June 5, 2026 08:09
Update-AUPackages Report #powershell #chocolatey