diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index a0c1bc8c..d4ce9a92 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -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";