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

EntraPulse – Your AI-Powered Gateway to Microsoft Graph & Docs

Today, I’m super excited to finally announce the Beta release of EntraPulse Lite – a…

2 months ago

Lokka MCP Authentication Enhancements

I'm excited to share some significant authentication enhancements I've contributed to the Lokka MCP Server…

3 months ago

AI Inception: Building AI Solutions with AI for AI

Last month I had the pleasure of speaking at the Sydney event for Global Azure.…

3 months ago

A Have I Been Pwned MCP Server for Claude

Model Context Protocol (MCP) is a powerful framework that extends AI clients like Claude and…

5 months ago

Azure AI Developer Hackathon

I've just completed participating in the Azure AI Developer Hackathon that was looking to provide…

5 months ago

Dynamics 365 CE (Sales, CRM) IAM PowerShell Module

Updated: July 2025 v1.0.2 Fixes issue setting D365SalesGlobals enabling session management for D365 Sales API…

6 months ago

This website uses cookies.