Sha256: 6734c9c69354b4cae7af8aca7684bae3f611da04598d6a50f81ed8f575805f60
Contents?: true
Size: 338 Bytes
Versions: 20
Compression:
Stored size: 338 Bytes
Contents
#Requires -Modules VagrantMessages param ( [parameter (Mandatory=$true)] [string]$VmId, [parameter (Mandatory=$true)] [int]$VlanId ) try { $vm = Hyper-V\Get-VM -Id $VmId -ErrorAction "stop" Hyper-V\Set-VMNetworkAdapterVlan $vm -Access -Vlanid $VlanId } catch { Write-ErrorMessage "Failed to set VM's Vlan ID $_" }
Version data entries
20 entries across 20 versions & 3 rubygems