Posted On December 24, 2019

PowerShell: Check VLAN of Windows Machine

kimconnect 0 comments
blog.KimConnect.com >> Codes , Networking >> 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 *

Related Post

PowerShell: Deleting a Single File Safely

# Name your file$item="\\FILESHERVER007\someweird folder names with long paths\ fmmkklghhbb-yj-yuyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy p-hphlfiles\whatup.exe - Shortcut.lnk" #item could…

How to Call Functions or Pass Function as Argument

cls   function listClusters{     # List all Clusters in this Domain     $items=get-cluster -domain (get-addomain)     $global:clusters=$items…

Bash: How To Join Array With Comma Delimiter

# The following function joins an array of numbers # Limitation: the delimiter is expected…