<div class=draft-block draft--p left>#節省win10開一大堆視窗才能改VLAN的時間</div> <pre class=public-DraftStyleDefault-pre draft-block><pre class=draft--code-block>$NicName = Read-Host Enter the name of the network adapter</pre><pre class=draft--code-block>$VlanId = Read-Host Enter the VLAN ID </pre><pre class=draft--code-block>$Nic = Get-NetAdapter -Name </pre><pre class=draft--code-block>$nicName$Nic | Set-Vlan -VlanId $vlanId</pre></pre>