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

Entra Auth Tracer – A Browser Extension for Deep Inspection of Microsoft Entra Authentication Flows

If you've ever needed to debug a Microsoft Entra (Azure AD) authentication flow, you'll know…

2 weeks ago

Entra Provision On Demand PowerShell Module

It’s 2026 and somehow I keep finding myself back in 2016, integrating heritage applications into…

3 weeks ago

Entra News MCP Server

I’ve just published an MCP server that turns Merill & Joshua’s weekly Entra News newsletter…

4 weeks ago

Entra ECMA2Host Tools PowerShell Module

If you've ever worked with the ECMA2Host for Entra Outbound Provisioning you'll be immediately presented…

4 months ago

PowerShell 7 Support Arrives for the Granfeldt PowerShell Management Agent

For over a decade, the Granfeldt PowerShell Management Agent (PSMA) has been the bedrock for…

6 months ago

PowerShell MCP Azure Function Server

Recently under the experimental Azure Functions build Microsoft Developer Advocates have shown enabling Azure Functions…

7 months ago

This website uses cookies.