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

Quick Script to Mount Remote UNC Paths as Local Drive Letters

Simple Mount: # Mapping a drive $username='domain\testAdmin' $password='PASSWORD' $remotePath='\\UNCSERVER\SHAREPATH\Backup' $unavailableDriveLetters=(Get-Volume).DriveLetter|sort $availableDriveLetters=.{(65..90|%{[char]$_})|?{$_ -notin $unavailableDriveLetters}} [char]$firstAvailableDriveLetter=$availableDriveLetters[0] $command="net…

How To Create a Windows Scheduled Task to Call a Program or Script

Example on How To Call a Program: Set Action = Start a Program Set Program/Script…

Quick Setup Notes: Install WordPress Using Docker

Obtain SSL Certificate Configure HAProxy Configure MySQL Run Docker Container # Simple WordPress with nothing…