Skip to content

Instantly share code, notes, and snippets.

@WindyNova
Created August 22, 2024 13:35
Show Gist options
  • Select an option

  • Save WindyNova/324b90ecf97ab7ba1616bdc814ef3cb2 to your computer and use it in GitHub Desktop.

Select an option

Save WindyNova/324b90ecf97ab7ba1616bdc814ef3cb2 to your computer and use it in GitHub Desktop.
Disable NetBIOS on every NIC
Get-CimInstance -ClassName 'Win32_NetworkAdapterConfiguration' | Where-Object -Property 'TcpipNetbiosOptions' -ne $null | Select-Object -Property @('ServiceName', 'Description', 'TcpipNetbiosOptions');
Get-CimInstance -ClassName 'Win32_NetworkAdapterConfiguration' | Where-Object -Property 'TcpipNetbiosOptions' -ne $null | Invoke-CimMethod -MethodName 'SetTcpipNetbios' -Arguments @{ 'TcpipNetbiosOptions' = [UInt32](2) } -Confirm;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment