Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Use the windows user CN as WSL2 distro username #87

Open
matt6697 opened this issue Dec 15, 2020 · 1 comment
Open

Use the windows user CN as WSL2 distro username #87

matt6697 opened this issue Dec 15, 2020 · 1 comment

Comments

@matt6697
Copy link

Would it be possible to add a launcher option to automatically retrieve and configure the Active Directory CN of the logged-in user as default WSL2 user ? This would help to ensure smooth WSL2 deployment in enterprise environment without prompting users at WSL2 initial launch.

https://docs.microsoft.com/fr-fr/windows/win32/api/winbase/nf-winbase-getusernamea?redirectedfrom=MSDN

@A-23187
Copy link
Contributor

A-23187 commented Nov 26, 2021

This repo is just a reference implementation of the WSL distro launcher. I think you can check if the distro you want to deploy supports some additional options for automatic deployment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants