Add a task for disabling UAC
This commit is contained in:
parent
cfd1559782
commit
a9bd4f5eb4
|
@ -133,6 +133,20 @@ $null = New-Module {
|
|||
Set-Stage ([SetupStage]::Configure);
|
||||
break;
|
||||
}
|
||||
([SetupStage]::OneShot) {
|
||||
Write-Host "Running a OneShot task";
|
||||
|
||||
Start-OneShot {
|
||||
Write-Host "task is-a running!";
|
||||
switch (Get-OneShotTask) {
|
||||
([OneShotTask]::DisableUAC) {
|
||||
Disable-UAC;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
break;
|
||||
}
|
||||
default {
|
||||
if (-not (& { $null = wsl -l; $? })) {
|
||||
wsl --import-in-place "PortValhalla" "$wslLocation/ext4.vhdx";
|
||||
|
|
Loading…
Reference in a new issue