bloginfo

How to minimize Windows network noise !

Oct 16th, 2016 (edited)
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Disable NetBios Over Ip : tcp/139, udp/137, udp/138
  2. $Path='HKLM:\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces'
  3. Get-ChildItem -Path $Path|Select Name|ForEach{
  4.     $Key=$_.Name.Replace("HKEY_LOCAL_MACHINE\","HKLM:")
  5.     Set-Itemproperty -Path $Key -Name "NetbiosOptions" -value 0
  6. }
  7. #Disable LLMNR : udp/5355
  8. $Path='HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient'
  9. $Value = Get-ItemProperty -Path $Path -Name 'EnableMulticast' -ErrorAction SilentlyContinue
  10. If($Value -eq $null)
  11. {
  12.     New-ItemProperty -path $Path -name 'EnableMulticast' -value 0 -PropertyType Dword
  13. }
  14. Else
  15. {
  16.     Set-Itemproperty -Path $Path -Name "EnableMulticast" -value 0
  17. }
  18. #Disable IPv6
  19. $Path='HKLM:\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters'
  20. $Value = Get-ItemProperty -Path $Path -Name 'DisabledComponents' -ErrorAction SilentlyContinue
  21. If($Value -eq $null)
  22. {
  23.     New-ItemProperty -path $path -name 'DisabledComponents' -value 4294967295 -PropertyType Dword
  24. }
  25. Else
  26. {
  27.     Set-Itemproperty -Path $Path -Name "DisabledComponents" -value 4294967295
  28. }
  29. #Disable SSDP : udp/1900
  30. $Path='HKLM:\SYSTEM\CurrentControlSet\services\SSDPSRV'
  31. Set-Itemproperty -Path $Path -Name "Start" -value 4
  32. #Disable UPnP : tcp/5000
  33. $Path='HKLM:\SYSTEM\CurrentControlSet\services\upnphost'
  34. Set-Itemproperty -Path $Path -Name "Start"-value 4
  35. #Disable Discovery Provider Host
  36. $Path='HKLM:\SYSTEM\CurrentControlSet\services\fdPHost'
  37. Set-Itemproperty -Path $Path -Name "Start" -value 4
  38. #Disable IPSec : Udp/500
  39. $Path='HKLM:\SYSTEM\CurrentControlSet\services\PolicyAgent'
  40. Set-Itemproperty -Path $Path -Name "Start" -value 4
  41. $Path='HKLM:\SYSTEM\CurrentControlSet\services\IKEEXT'
  42. Set-Itemproperty -Path $Path -Name "Start" -value 4
  43. #Disable AutoProxy
  44. $Path='HKLM:\SYSTEM\CurrentControlSet\services\WinHttpAutoProxySvc'
  45. Set-Itemproperty -Path $Path -Name "Start" -value 4
Add Comment
Please, Sign In to add comment