mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 03:11:45 +00:00
bugfix: install wsl and windows features as administrator
This commit is contained in:
parent
509ebf7437
commit
5014da3a46
@ -19,7 +19,10 @@ function WSLInstall
|
||||
|
||||
$install = Read-Host "Install WSL2 now? [Y/n]"
|
||||
if ($install.ToLower() -ne 'n')
|
||||
{ InstallWSL
|
||||
{
|
||||
# Start admin process, import this script, run 'InstallPackages' function
|
||||
Start-Process powershell.exe -Verb RunAs -Wait `
|
||||
-ArgumentList "-C", "'Import-Module ./wsl.psm1; InstallWSL'"
|
||||
}
|
||||
wsl.exe --install -d Ubuntu
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user