This repository was archived by the owner on May 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ DisableWAPPush # EnableWAPPush
3636DisableAdminShares # EnableAdminShares
3737# DisableSMB1 # EnableSMB1
3838# DisableSMBServer # EnableSMBServer
39+ # DisableNetBIOS # EnableNetBIOS
3940# DisableLLMNR # EnableLLMNR
4041# DisableNCSIProbe # EnableNCSIProbe
4142SetCurrentNetworkPrivate # SetCurrentNetworkPublic
Original file line number Diff line number Diff 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
551563Function DisableLLMNR {
552564 Write-Output " Disabling LLMNR..."
You can’t perform that action at this time.
0 commit comments