Partager via


Turning on or Turning off Logging

Updated: October 22, 2009

Applies To: Windows Server 2008 R2, Windows Server 2008 R2 with SP1

AD RMS logs are sent to the database server by Message Queuing. If a connection to the database server is not present, Message Queuing stores the logs in a local cache until connectivity is restored. The first time you enable logging, you should make sure that the AD RMS server has a connection to the database server, and that the database service is started. If Message Queuing cannot deliver the logs to the logging database, it keeps the data in a queue on the hard disk of the AD RMS server. It continues to do this until all of the storage space on the server is full. When no disk space is left on the server, Message Queuing will stop. AD RMS does not display an error in this condition because the feature is meant to support logging during times when the connection to the database server is interrupted.

Turning off logging stops the Active Directory Rights Management Services (AD RMS) Web services from sending data to the logging message queue.

Membership in the local AD RMS Enterprise Administrators, or equivalent, is the minimum required to complete this procedure.

To turn on logging

  • At the Windows PowerShell command prompt, type:

    Set-ItemProperty -Path <drive>:\ -Name IsLoggingEnabled -Value $true

    where <drive> is the name of the Windows PowerShell drive.

To turn off logging

  • At the Windows PowerShell command prompt, type:

    Set-ItemProperty -Path <drive>:\ -Name IsLoggingEnabled -Value $false

    where <drive> is the name of the Windows PowerShell drive.

See Also

Concepts

Using Windows PowerShell to Administer AD RMS
Understanding the AD RMS Administration Provider Namespace

Other Resources

Understanding the AD RMS Databases