June 2005
Intermediate to advanced
464 pages
13h 2m
English
You wish to enable circular logging for your Exchange Server transaction logs.
Launch the Exchange System Manager (Exchange System Manager.msc).
In the left pane, expand the appropriate Administrative Groups container, and then expand the Servers container.
Expand the server that contains the target SG.
Right-click the storage group and select Properties.
Check the box labeled Enable Circular Logging.
Click OK.
' This code toggles circular logging for a storage group.
' ------ SCRIPT CONFIGURATION ------
strServerName = "<SERVERNAME>" ' e.g., "BATMAN"
' ------ END CONFIGURATION ---------
Set theServer = CreateObject("CDOEXM.ExchangeServer")
Set theSG = CreateObject("CDOEXM.StorageGroup")
theServer.DataSource.Open strServerName
arrSG = theServer.StorageGroups
theFirstSG = arrSG(0)
strURL = "LDAP://" & theServer.DirectoryServer & "/" & theFirstSG
theSG.DataSource.Open strURL
If (True = theSG.CircularLogging) Then
wscript.echo "Circular logging is enabled; disabling it"
theSG.CircularLogging = false
Else
wscript.echo "Circular logging is disabled; enabling it"
theSG.CircularLogging = true
End If
theSG.DataSource.Save
WScript.echo "Circular logging is now " & theSG.CircularLogging & " on SG " & theFirstSGSince a new log file is created whenever the current one fills up, log files can potentially take up a large amount of space on your disk. One solution is to put ...