Do not respond to multicast or broadcast (VBScript)

This code can be found in Chapter 3 of Windows Server 2003 Networking Recipes

Purchase XP Cookbook or Networking Recipes for only $25 plus shipping! While supplies last.

Find out how to download all of the VBScript code from this site.

' From the book "Windows Server 2003 Networking Recipes"

' This code disables unicast responses to broadcast or multicast traffic.
 Set Firewall = CreateObject("HNetCfg.FwMgr")
 Set Policy = Firewall.LocalPolicy.CurrentProfile
Policy. UnicastResponsestoMulticastBroadcastDisabled = TRUE
' set this to FALSE to enable broadcast/multicast responses
WScript.Echo "Unicast disabled"

This code has been viewed 995 times.

New from the creators of TechTasks.com: StatSheet.com