X-Git-Url: https://vilimpoc.org/repos/dotfiles/blobdiff_plain/0b4125206461c1a63a971ac9cf503319bcb05798..325b494c6241dcc4dc1cb7436ee84ac105b318eb:/setup-windows-with-uac.ps1 diff --git a/setup-windows-with-uac.ps1 b/setup-windows-with-uac.ps1 index 4e3602f..3832ecf 100644 --- a/setup-windows-with-uac.ps1 +++ b/setup-windows-with-uac.ps1 @@ -224,7 +224,7 @@ function Invoke-VsModify { # Elevation is a given here (#Requires above), so nothing is blocked on it. $Plan = @(Resolve-SetupSelection -Steps @(Get-SetupCatalog -IsArm64 $IsArm64 | Where-Object Runner -eq 'uac') ` -Only $(if ($PSBoundParameters.ContainsKey('Only')) { $Only } else { $null }) -Skip $Skip ` - -IsArm64 $IsArm64 -Elevation 'ALREADY') + -IsArm64 $IsArm64 -Elevation 'ALREADY' -VirtualMachine (Get-SetupVirtualMachine)) $StepIds = @($Plan | ForEach-Object { $_.Id }) $RunSteps = @($Plan | Where-Object Selected | ForEach-Object { $_.Id }) $AskedSteps = New-Object 'System.Collections.Generic.HashSet[string]' ([StringComparer]::OrdinalIgnoreCase)