How To Restart WSL Service on Windows

In this post we will learn how to restart the Windows Subsystem for Linux (WSL) on a Windows machine.

One of the known issues with WSL is that it has a problem with time and date sync. If you type date in the WSL terminal you might notice that the time is not correct and lags the Windows operating systems time.

One of the fixes is to restart the entire computer; sometimes, it is impossible to do that. Another option is to restart the underlying WSL service, restart WSL distribution and fix the time sync.

LXSSMANAGER

To restart WSL on a Windows machine we need to restart the LXSSMANAGER which is available under services.

You could also use PowerShell to restart WSL using the following command.

Restart-Service  LXSSMANAGER


Posted

in

,

by