From c0282f18959cccf803b9452e54cdbf478e51f11a Mon Sep 17 00:00:00 2001 From: Wayland/Weilan <267128979@qq.com> Date: Wed, 10 Apr 2024 10:12:01 -0400 Subject: [PATCH] Update win-enable-nested-hyperv.ps1 --- src/windows/win-enable-nested-hyperv.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/windows/win-enable-nested-hyperv.ps1 b/src/windows/win-enable-nested-hyperv.ps1 index 56eb16c..8823ba8 100644 --- a/src/windows/win-enable-nested-hyperv.ps1 +++ b/src/windows/win-enable-nested-hyperv.ps1 @@ -105,6 +105,9 @@ if ($hyperv.Installed -and $hypervTools.Installed -and $hypervPowerShell.Install # Suppress the prompt for "Do you want to allow your PC to be discoverable by other PCs and devices on this network" $return = new-item -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" -Force "END: Creating nested guest VM" | out-file -FilePath $logFile -Append + $return.ExitCode + write-host $return.ExitCode + return $STATUS_SUCCESS } catch { throw $_