Enable tombstone logging (VBScript)
This code can be found in
Chapter 17 of Active Directory Cookbook, 2nd edition
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.
' This VBScript code enables garbage collection logging.
' ---------------------------------------------------------------
' From the book "Active Directory Cookbook" by Robbie Allen
' ISBN: 0-596-00466-4
' ---------------------------------------------------------------
' ------ SCRIPT CONFIGURATION ------
strDCName = "<DomainControllerName>"
' Logging level 3 should be sufficient, but you can increase to 5 if necessary
intValue = 3
' ------ END CONFIGURATION ---------
const HKLM = &H80000002
strNTDSReg = "SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics"
set objReg = GetObject("winmgmts:\\" & strDCName & "\root\default:StdRegProv")
objReg.SetDWORDValue HKLM, strNTDSReg, "6 Garbage Collection", intValue
WScript.Echo "Garbage Collection logging enabled"
|
This code has been viewed 1483 times.
|
New from the creators of TechTasks.com:
StatSheet.com
|