Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get-LocalNIC.ps1
function Get-LocalNICName {
(Get-NetAdapter | Where-Object { $_.Name -eq 'Wi-Fi'}).Name
}
function Get-LocalNICMTUSize ($name) {
(Get-NetAdapter -Name $name).MtuSize
}
function Get-LocalNICFullDuplex ($name) {
(Get-NetAdapter -Name $name).FullDuplex
}
function Get-LocalNICSystemName ($name) {
(Get-NetAdapter -Name $name).SystemName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment