Windows Subsystem for Linux (WSL)

Restarting WSL

Published 2025-11-02.
Time to read: 1 minutes.

This page is part of the wsl collection.

As a long-time WSL user, I have often wanted to restart WSL without rebooting. However, information on how to do that without leaving an Administrator console open for the rest of the Windows login session has been hard to come by.

Until this article was published.

The Problem Restarting WSL

Most instructions for restarting WSL look something like this:

Administrator CMD or PowerShell
PS C:\Users\Mike Slinn> wsl --shutdown
PS C:\Users\Mike Slinn> wsl

This requires that the Administrator console window remain open so long as someone wants to continue using WSL.

Magic Incantation

This is the magic incantation to restart WSL as background job without having to leave a console open for the rest of the Windows login session:

Administrator PowerShell
PS C:\Users\Mike Slinn> wsl --shutdown; Start-Process wsl

Then close the PowerShell console.

* indicates a required field.

Please select the following to receive Mike Slinn’s newsletter:

You can unsubscribe at any time by clicking the link in the footer of emails.

Mike Slinn uses Mailchimp as his marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp’s privacy practices.