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: Assign Guest Virtual Machine to a Cloud in VMM

# assignVmsToCloud.ps1 # version 0.02 # The following function assigns a guest VM into a…

PowerShell: Reset Active Directory User Password

# User input variables $adminUsername='intranet\kim-a' $adminPassword='SOMECOMPLEXPASSWORD' $userId='kim' $newPassword='SOMECOMPLEXPASSWORD' $domainController='intranet.kimconnect.com' # Auto-gen Variables $encryptedPassword=ConvertTo-SecureString $adminPassword -AsPlainText…

JavaScript: Wikipedia Viewer

Demo: Wikipedia Viewer HTML Code: <body><div class="container"> <h1>Wikipedia Search</h1> <p>A Free Code Camp Intermediate Project</p><br/>…