shayne / go-wsl2-host

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

Support using default local service account #86

Open lsiu opened 1 year ago

lsiu commented 1 year ago

There is a default service account NT AUTHORITY\LocalService we can use to install the wsl2host service. However, fmt does not support taking user input with space in it.

With this change, I am able to enter user name NT AUTHORITY\LocalService and no passowrd (just press enter on password prompt), and have the service up and running.

image