Disable Recursion (VBScript)

This code can be found in Chapter 12 of Windows Server 2003 Security Cookbook

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.

set objDNS = GetObject("winMgmts:root\MicrosoftDNS")
set objDNSServer = objDNS.Get("MicrosoftDNS_Server.Name="".""")
objDNSServer.NoRecursion = TRUE
objDNSServer.Put_
WScript.Echo "Recursion disabled"

This code has been viewed 900 times.

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