]> vilimpoc.org git repositories - dotfiles/blobdiff - setup-windows-with-uac.ps1
dotfiles: put .local\bin on the user PATH, and skip VirtualBox in a VM
[dotfiles] / setup-windows-with-uac.ps1
index 4e3602f59ad17163906cf4c3ae1aef29ecac56e3..3832ecf3ad9aac03ee1469f0cc3d8fef3acca15f 100644 (file)
@@ -224,7 +224,7 @@ function Invoke-VsModify {
 # Elevation is a given here (#Requires above), so nothing is blocked on it.\r
 $Plan = @(Resolve-SetupSelection -Steps @(Get-SetupCatalog -IsArm64 $IsArm64 | Where-Object Runner -eq 'uac') `\r
             -Only $(if ($PSBoundParameters.ContainsKey('Only')) { $Only } else { $null }) -Skip $Skip `\r
 # Elevation is a given here (#Requires above), so nothing is blocked on it.\r
 $Plan = @(Resolve-SetupSelection -Steps @(Get-SetupCatalog -IsArm64 $IsArm64 | Where-Object Runner -eq 'uac') `\r
             -Only $(if ($PSBoundParameters.ContainsKey('Only')) { $Only } else { $null }) -Skip $Skip `\r
-            -IsArm64 $IsArm64 -Elevation 'ALREADY')\r
+            -IsArm64 $IsArm64 -Elevation 'ALREADY' -VirtualMachine (Get-SetupVirtualMachine))\r
 $StepIds    = @($Plan | ForEach-Object { $_.Id })\r
 $RunSteps   = @($Plan | Where-Object Selected | ForEach-Object { $_.Id })\r
 $AskedSteps = New-Object 'System.Collections.Generic.HashSet[string]' ([StringComparer]::OrdinalIgnoreCase)\r
 $StepIds    = @($Plan | ForEach-Object { $_.Id })\r
 $RunSteps   = @($Plan | Where-Object Selected | ForEach-Object { $_.Id })\r
 $AskedSteps = New-Object 'System.Collections.Generic.HashSet[string]' ([StringComparer]::OrdinalIgnoreCase)\r