Jounaling the travel from one subject to another, often with no definite destination or purpose...
We need a different method to restart the Windows Subsystem for Linux LxssManager service
The Windows Subsystem for Linux environment apps such as Ubuntu, Debian, OpenSuse, and Kali do not support the Systemd that provides fundamental building blocks for a Linux operating system. We are not able to reboot or use the systemctl commands to manage the systemd services.
Let’s explore different methods to restart the LxssManager service.
Launch an elevated PowerShell prompt: 1
Get-Service LxssManager | Restart-Service
Attempting to launch from a standard prompt will result in the following error:
Restart-Service : Service 'LxssManager (LxssManager)' cannot be stopped due to the following error: Cannot open
LxssManager service on computer '.'.
At line:1 char:27
+ Get-Service LxssManager | Restart-Service
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (System.ServiceProcess.ServiceController:ServiceController) [Restart-Service
], ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStopService,Microsoft.PowerShell.Commands.RestartServiceCommand
Using the Services consoles is perhaps the simplest method to stop, start, disable, or enable one or multiple services on Windows 10.
Stop service
To stop a running service using Services, use these steps:
Quick tip: You can also manage the state by right-clicking the service and selecting the option. Or you can select the service and then use the controls at the top to start, stop, pause, or restart.
Once you complete the steps, the service will stop running on the device.
If you’re unable to stop a system service, consider that some services are required for the operation of Windows 10, and they can’t be stopped.
Start service
To start a service on Windows 10, use these steps:
After you complete the steps, the service you specified will start for the current session.
Note: This works on Windows systems with Windows PowerShell (5.1) and/or PowerShell (7.1). ↩