shayne / go-wsl2-host

Automatically update your Windows hosts file with the WSL2 VM IP address
1.65k stars 140 forks source link

Event Viewer shows error logs #61

Closed dioseltorre closed 1 year ago

dioseltorre commented 2 years ago

I noticed in Event Viewer it keeps logging failure messages even though it was able to update the hosts file.

image

eduardoluizgs commented 2 years ago

In my case, this happens because the user account informed when installing the app does not have the right to logon as a service.

Accessing the WSL2Host service configuration in services.msc panel and configuring the username and password again in the Logon tab, windows adds the right to logon as a service to the user account and the app is able to run normally.

wcb33 commented 1 year ago

same as #77