Remove module loading from vlan script
This commit is contained in:
parent
872c3c957d
commit
1ece44ca84
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue