- Disable NetBIOS over TCP/IP
$ActiveNic = Get-WmiObject Win32_NetworkAdapterConfiguration -filter "ipenabled=true"
$ActiveNic.SetTcpipNetbios(2)
- Windows Firewall disable, enable and status
Get-NetFirewallProfile | Format-Table Name, Enabled
Set-NetFirewallProfile -Profile Domain, Public, Private -Enabled false