Skip to content

Instantly share code, notes, and snippets.

@heyvoon
Last active January 22, 2018 16:41
Show Gist options
  • Save heyvoon/af3941d6f797b034dbf1 to your computer and use it in GitHub Desktop.
Save heyvoon/af3941d6f797b034dbf1 to your computer and use it in GitHub Desktop.
This script will scan through all the enabled NICs and discover # it's current setting. (0=Enabled, 1=Enabled, 2=Disabled)
###########################################################################
#
# NAME: DiscoverNetBiosOverTcpIpSettings.ps1
#
# AUTHOR: aamaral
#
# COMMENT: This script will scan through all the enabled NICs and discover
# it's current setting. (0=Enabled, 1=Enabled, 2=Disabled)
#
# VERSION HISTORY:
# 1.0 18/05/2015 - Initial release
#
###########################################################################
$adapters= $null
$adapters=(gwmi win32_networkadapterconfiguration -Filter 'ipenabled = "true"')
Foreach ($nic in $adapters) {
write-host $nic.TcpIPNetBiosOptions
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment