Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 5bd2f62

Browse files
snotraukDisassembler0
authored andcommitted
Add "Disable NetBIOS" (#226)
1 parent 30f93c3 commit 5bd2f62

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Default.preset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ DisableWAPPush # EnableWAPPush
3636
DisableAdminShares # EnableAdminShares
3737
# DisableSMB1 # EnableSMB1
3838
# DisableSMBServer # EnableSMBServer
39+
# DisableNetBIOS # EnableNetBIOS
3940
# DisableLLMNR # EnableLLMNR
4041
# DisableNCSIProbe # EnableNCSIProbe
4142
SetCurrentNetworkPrivate # SetCurrentNetworkPublic

Win10.psm1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,18 @@ Function EnableSMBServer {
547547
Set-SmbServerConfiguration -EnableSMB2Protocol $true -Force
548548
}
549549

550+
# Disable NetBIOS over TCP/IP on all currently installed network interfaces
551+
Function DisableNetBIOS {
552+
Write-Output "Disabling NetBIOS over TCP/IP..."
553+
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces\Tcpip*" -Name "NetbiosOptions" -Type DWord -Value 2
554+
}
555+
556+
# Enable NetBIOS over TCP/IP on all currently installed network interfaces
557+
Function EnableNetBIOS {
558+
Write-Output "Enabling NetBIOS over TCP/IP..."
559+
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces\Tcpip*" -Name "NetbiosOptions" -Type DWord -Value 0
560+
}
561+
550562
# Disable Link-Local Multicast Name Resolution (LLMNR) protocol
551563
Function DisableLLMNR {
552564
Write-Output "Disabling LLMNR..."

0 commit comments

Comments
 (0)