Sha256: 51f4c782a04f7d693e266726f7128afc85a25eddbbe17b5faf72ff3c9f40b85a
Contents?: true
Size: 373 Bytes
Versions: 29
Compression:
Stored size: 373 Bytes
Contents
#Requires -Modules VagrantMessages param ( [parameter (Mandatory=$true)] [string]$VmId, [parameter (Mandatory=$true)] [string]$Mac ) $ErrorActionPreference = "Stop" try { $vm = Hyper-V\Get-VM -Id $VmId Hyper-V\Set-VMNetworkAdapter $vm -StaticMacAddress $Mac } catch { Write-ErrorMessage "Failed to set VM MAC address: ${PSItem}" exit 1 }
Version data entries
29 entries across 25 versions & 4 rubygems