Merge pull request #10366 from chrisroberts/f-hyperv-vlan

Remove module loading from vlan script
This commit is contained in:
Chris Roberts 2018-11-05 12:53:33 -08:00 committed by GitHub
commit d5f3600c4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -7,12 +7,6 @@ param (
[int]$VlanId [int]$VlanId
) )
# Include the following modules
$presentDir = Split-Path -parent $PSCommandPath
$modules = @()
$modules += $presentDir + "\utils\write_messages.ps1"
forEach ($module in $modules) { . $module }
try { try {
$vm = Hyper-V\Get-VM -Id $VmId -ErrorAction "stop" $vm = Hyper-V\Get-VM -Id $VmId -ErrorAction "stop"
Hyper-V\Set-VMNetworkAdapterVlan $vm -Access -Vlanid $VlanId Hyper-V\Set-VMNetworkAdapterVlan $vm -Access -Vlanid $VlanId