CmdID / PowerShell / Cmdlets / Set
Set-NetworkSwitchPortMode
Sets the port mode on a network switch. Windows Server PowerShell reference
From the Windows Server PowerShell reference 11 parameters Its page in the reference
Parameters
-AccessModeIndicates that this cmdlet sets the port to access mode.-CimSessionSpecifies the CimSession that this cmdlet uses to connect to the network switch.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-InputObjectSpecifies the input object that is used in a pipeline command.-IpAddressSpecifies an IP address to set for the port in route mode.-RouteModeIndicates that this cmdlet sets the port to route mode.-SubnetAddressSpecifies the subnet mask to set for the port in route mode.-TrunkModeIndicates that this cmdlet sets the port to trunk mode.-VlanIDSpecifies the virtual local area network (VLAN) ID of the VLAN to set for the port in access mode.-VlanIDsSpecifies the VLAN IDs of the VLANs to set for the port in trunk mode.-WhatIf, -wiShows what would happen if the cmdlet runs.