Skip to content

Instantly share code, notes, and snippets.

@ShamarKellman
Created January 3, 2020 15:29
Show Gist options
  • Select an option

  • Save ShamarKellman/a324d75cca2280fcc97e145f76b986db to your computer and use it in GitHub Desktop.

Select an option

Save ShamarKellman/a324d75cca2280fcc97e145f76b986db to your computer and use it in GitHub Desktop.
Set NETBIOS
Here's how to:
1. Run PowerShell as an Administrator
2. Disable NetBIOS settings: $adapters=(gwmi win32_networkadapterconfiguration )
Foreach ($adapter in $adapters){
Write-Host $adapter
$adapter.settcpipnetbios(2)
}
Enable NetBIOS settings: $adapters=(gwmi win32_networkadapterconfiguration )
Foreach ($adapter in $adapters){
Write-Host $adapter
$adapter.settcpipnetbios(1)
}
Use Default NetBIOS settings from DHCP Server:
$adapters=(gwmi win32_networkadapterconfiguration )
Foreach ($adapter in $adapters){
3. Finally check NetBIOS settings' status by going to Network and Sharing Center → Current network's "Properties" → "Internet Protocol version 4 (TCP/IPv4)" option → "Advanced" button under the General tab → WINS tab. Here you will see whether NetBIOS settings are enabled, disabled or default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment