Add a task for disabling UAC
This commit is contained in:
parent
d809ed112c
commit
069aec8271
|
@ -133,6 +133,20 @@ $null = New-Module {
|
||||||
Set-Stage ([SetupStage]::Configure);
|
Set-Stage ([SetupStage]::Configure);
|
||||||
break;
|
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 {
|
default {
|
||||||
if (-not (& { $null = wsl -l; $? })) {
|
if (-not (& { $null = wsl -l; $? })) {
|
||||||
wsl --import-in-place "PortValhalla" "$wslLocation/ext4.vhdx";
|
wsl --import-in-place "PortValhalla" "$wslLocation/ext4.vhdx";
|
||||||
|
|
Loading…
Reference in a new issue