Skip to content

Commit

Permalink
update to 0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick330602 committed Oct 13, 2021
1 parent d09e810 commit c738651
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Binary file modified PsUWI.psd1
Binary file not shown.
7 changes: 6 additions & 1 deletion PsUWI.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function New-UbuntuWSLInstance {
}
}
if ( -not $RootOnly ) {
$tmp_dis_name = (Get-ChildItem HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\ | Get-ItemProperty | Where {$_.'DistributionName' -eq "ubuntu-$TmpName"})[0].PSChildName
$tmp_dis_name = (Get-ChildItem HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\ | Get-ItemProperty | Where-Object {$_.'DistributionName' -eq "ubuntu-$TmpName"})[0].PSChildName
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\$tmp_dis_name" -Name DefaultUid -Value 1000 -Force
}
Write-IfNotSilent "You are ready to rock!"
Expand All @@ -232,6 +232,11 @@ function New-UbuntuWSLInstance {
}
}

function New-NonInteractiveUbuntuInstance {
$output = New-UbuntuWSLInstance -NonInteractive $args
return $output[-1]
}

function Remove-UbuntuWSLInstance {
<#
.SYNOPSIS
Expand Down

0 comments on commit c738651

Please sign in to comment.