How-to

Windows Subsystem for Linux instance has terminated

Short post on how to recovery from “The Windows Subsystem for Linux instance has terminated” with exit code 4294967295 (0xffffffff) which I have had a number of times recently. Usually after taking my notebook on the road without closing sessions then returning and connecting back to my dock.

There are a number of recommendations you’ll find searching how to recover but many also date back to WSL v1. And many indicate terminating services that also require a reboot. That’s not necessary for me. This is what works, and I am documenting it so I can find it quickly next time.

Recovery from WSL terminated with exit code 4294967295

In my case I’m running Ubuntu in WSL2. In a PowerShell window run the following command.

wsl --shutdown

Start a new WSL (Ubuntu) session and you’ll be back up and running.

Darren Robinson

Bespoke learnings from a Microsoft Identity and Access Management Architect using lots of Microsoft Identity Manager, Azure Active Directory, PowerShell, SailPoint IdentityNow and Lithnet products and services.

Recent Posts

Visualising your IP Address using PowerShell and AI

A few weeks back the Microsoft AI Tour was in Sydney Australia. There was a…

3 weeks ago

Where the heck is the PowerShell Module loading from?

If you're anything like me you always have PowerShell open, and often both PowerShell and…

4 months ago

Express Verified ID Setup

Decentralised Identity is a technology I'm passionate about and have written many posts and tools…

5 months ago

Orchestrating 1Password with PowerShell

Over two years ago I authored a PowerShell Module that enabled the automation of 1Password.…

8 months ago

Entra ID Tenant ID & Custom Domains PowerShell Module

Buried in my PowerShell Snippets Vol 4 post from 2021 is the PowerShell script and…

8 months ago

Goodbye Azure AD, Hello Entra ID

Today Microsoft made big announcements about its Microsoft Entra suite of identity and security products…

9 months ago

This website uses cookies.