http://msdn.microsoft.com/en-us/library/ms735120.aspx
http://msdn.microsoft.com/en-us/library/aa702726.aspx
Using WMI to Modify Settings (Windows Management Instrumentation)
You can use WMI to change configuration settings at runtime (by enabling the wmiProviderEnabled attribute in the configuration, as demonstrated in the previously configuration example). For example,you can use WMI within the CIM Studio to change the trace source levels from Warning to Information at runtime. You should be aware that the performance cost of live debugging in this way can be very high. For more information about using WMI, see the Using Windows Management Instrumentation for Diagnostics topic.
<system.serviceModel>
<diagnostics wmiProviderEnabled="true">
<messageLogging
logEntireMessage="true"
logMalformedMessages="true"
logMessagesAtServiceLevel="true"
logMessagesAtTransportLevel="true"
maxMessagesToLog="3000"
/>
</diagnostics>
</system.serviceModel>