Remove module loading from vlan script

This commit is contained in:
Chris Roberts 2018-11-02 10:42:28 -07:00
parent 872c3c957d
commit 1ece44ca84
1 changed files with 0 additions and 6 deletions

View File

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