Sha256: 1c338c78ac61e7a693333473adcaf786f318c1da448a15031006b4b746d5142c

Contents?: true

Size: 491 Bytes

Versions: 8

Compression:

Stored size: 491 Bytes

Contents

#Requires -Modules VagrantMessages

param (
    [parameter (Mandatory=$true)]
    [Guid] $VMID,
    [parameter (Mandatory=$true)]
    [string] $Type
)

$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 -EnhancedSessionTransportType $Type
} catch {
    Write-ErrorMessage "Failed to assign EnhancedSessionTransportType to ${Type}: ${PSItem}"
    exit 1
}

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
vagrant-unbundled-2.3.3.0 plugins/providers/hyperv/scripts/set_enhanced_session_transport_type.ps1
vagrant-unbundled-2.3.2.0 plugins/providers/hyperv/scripts/set_enhanced_session_transport_type.ps1
vagrant-unbundled-2.2.19.0 plugins/providers/hyperv/scripts/set_enhanced_session_transport_type.ps1
vagrant-unbundled-2.2.18.0 plugins/providers/hyperv/scripts/set_enhanced_session_transport_type.ps1
vagrant-unbundled-2.2.16.0 plugins/providers/hyperv/scripts/set_enhanced_session_transport_type.ps1
vagrant-unbundled-2.2.14.0 plugins/providers/hyperv/scripts/set_enhanced_session_transport_type.ps1
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/providers/hyperv/scripts/set_enhanced_session_transport_type.ps1
vagrant-unbundled-2.2.10.0 plugins/providers/hyperv/scripts/set_enhanced_session_transport_type.ps1