Sha256: f358a44c30d2d1aaa7e95cebb6ec3933a250d37a40cdf93f1ba5242431772296
Contents?: true
Size: 548 Bytes
Versions: 9
Compression:
Stored size: 548 Bytes
Contents
Try { $adapters = Get-NetAdapter -Physical | where status -eq 'up' foreach ($adapter in $adapters) { $switch = Hyper-V\Get-VMSwitch -SwitchType External -ErrorAction SilentlyContinue | where { $_.NetAdapterInterfaceDescription -eq $adapter.InterfaceDescription } if ($switch -eq $null) { $switch = Hyper-V\New-VMSwitch -Name 'vagrant-subutai' -ErrorAction SilentlyContinue -NetAdapterName $adapter.Name -AllowManagementOS $TRUE -Notes 'Parent OS, VMs, WiFi' } if ($switch -ne $null) { break } } } Catch { }
Version data entries
9 entries across 9 versions & 1 rubygems