Skip to content

Instantly share code, notes, and snippets.

@AzimsTech
Last active February 27, 2026 16:00
Show Gist options
  • Select an option

  • Save AzimsTech/7a75809c3ca25ecfbf5adf68ae9583c8 to your computer and use it in GitHub Desktop.

Select an option

Save AzimsTech/7a75809c3ca25ecfbf5adf68ae9583c8 to your computer and use it in GitHub Desktop.
GPO - Disable NetBIOS over TCP/IP
$regkey = "HKLM:SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces"
Get-ChildItem $regkey |foreach { Set-ItemProperty -Path "$regkey\$($_.pschildname)" -Name NetbiosOptions -Value 2 -Verbose}
# Computer Configuration > Windows Settings > Script (Startup/Shutdown) > Startup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment