CmdID / PowerShell / Cmdlets / Set
Set-VMNetworkAdapterVlan
Configures the virtual LAN settings for the traffic through a virtual network adapter. Windows Server PowerShell reference
From the Windows Server PowerShell reference 23 parameters Its page in the reference
Parameters
Show its 23 parameters
-Access, -aSpecifies Access mode for the virtual machine network adapter.-AllowedVlanIdListSpecifies a list of virtual LANs allowed on a virtual machine network adapter.-CimSessionRuns the cmdlet in a remote session or on a remote computer.-Community, -cSpecifies Community mode for the virtual machine network adapter to be configured.-ComputerNameSpecifies one or more Hyper-V hosts on which the virtual LAN settings on a virtual machine network adapter are to be configured.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CredentialSpecifies one or more user accounts that have permission to perform this action.-Isolated, -iSpecifies Isolated mode for the virtual machine network adapter to be configured.-ManagementOSSpecifies the management (e.g.-NativeVlanIdSpecifies the native virtual LAN identifier for a virtual machine network adapter.-PassthruSpecifies that a Microsoft.HyperV.PowerShell.VMNetworkAdapterVlanSetting object is to be passed through to the pipeline representing the virtual machine network adapter virtual LAN settings to be con…-PrimaryVlanIdSpecifies the primary virtual LAN identifier for a virtual network adapter in Community, Isolated, or Promiscuous mode.-Promiscuous, -pSpecifies Promiscuous mode for the virtual machine network adapter.-SecondaryVlanIdSpecifies the secondary virtual LAN identifier for a virtual network adapter in Community or Isolated mode.-SecondaryVlanIdListSpecifies a list of private virtual LAN secondary virtual LANs on a virtual machine network adapter.This parameter must be specified in conjunction with parameter PrimaryVlanId and switch parameter P…-Trunk, -tSpecifies Trunk mode for the virtual machine network adapter.-Untagged, -uSpecifies Untagged mode for the virtual machine network adapter.-VMSpecifies the virtual machine.-VMNameSpecifies the name of the virtual machine.-VMNetworkAdapterSpecifies the virtual machine network adapter.-VMNetworkAdapterNameSpecifies the name of the virtual machine network adapter.-VlanId, -AccessVlanIdSpecifies the virtual LAN identifier of a virtual machine network adapter.-WhatIf, -wiShows what would happen if the cmdlet runs.