PowerShell: Check VLAN of Windows Machine

Le Kommand:

Get-NetAdapter|select Name,VlanID

Sample Outputs

PS C:\Windows\system32> Get-NetAdapter|select Name,VlanID

Name VlanID
---- ------
Ethernet 1 0
PS C:\Windows\system32> Get-NetAdapter|select Name,VlanID

Name VlanID
---- ------
Ethernet 2
Ethernet
vEthernet (Default Switch)
Ethernet0
Ethernet 3
Local Area Connection

Leave a Reply

Your email address will not be published. Required fields are marked *