Last active
January 22, 2018 16:41
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################################### | |
# | |
# 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