Sha256: c715c5026cc8658c599b48ad4d4a7445e750401578b0e340ba7cfe8914fb48f6
Contents?: true
Size: 458 Bytes
Versions: 29
Compression:
Stored size: 458 Bytes
Contents
#Requires -Modules VagrantMessages param ( [parameter (Mandatory=$true)] [Guid] $VMID, [parameter (Mandatory=$true)] [string] $VMName ) $ErrorActionPreference = "Stop" try { $VM = Hyper-V\Get-VM -Id $VMID } catch { Write-ErrorMessage "Failed to locate VM: ${PSItem}" exit 1 } try { Hyper-V\Set-VM -VM $VM -NewVMName $VMName } catch { Write-ErrorMessage "Failed to assign new VM name ${VMName}: ${PSItem}" exit 1 }
Version data entries
29 entries across 25 versions & 4 rubygems