Skip to content

Instantly share code, notes, and snippets.

@gabrielrojasnyc
Created December 28, 2015 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielrojasnyc/ada0896791973670c6ac to your computer and use it in GitHub Desktop.
Save gabrielrojasnyc/ada0896791973670c6ac to your computer and use it in GitHub Desktop.
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