win+R shell:startup 进入配置目录 进入window所在的目录
新建一个 txt文本文档,后更改扩展名.vbs
撰写内容: 其中ubuntu20.04是子系统的名称
Set ws = WScript.CreateObject("WScript.Shell")ws.run "C:\Windows\System32\bash.exe ",0