Add a task for disabling UAC

This commit is contained in:
Manuel Thalmann 2024-08-10 00:23:37 +02:00
parent e5e4864718
commit 914691eb9a

View file

@ -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";