#節省win10開一大堆視窗才能改VLAN的時間 $NicName = Read-Host "Enter the name of the network adapter"$VlanId = Read-Host "Enter the VLAN ID" $Nic = Get-NetAdapter -Name $nicName$Nic | Set-Vlan -VlanId $vlanId