The LogSettings class contains members that get and set information about creating Event Trace Logs (.etl files).
Set logsettings = GetObject("winmgmts:root/MSS:LogSettings=@")
Only one instance of the LogSettings class exists for each computer. .
Windows Management Instrumentation (WMI) Script Example
The following WMI script retrieves the instance of the LogSettings class and displays the location of the log files on the screen.
Set logsettings = GetObject("winmgmts:root\MSS:LogSettings=@") WScript.Echo logsettings.location
Gets and sets a Boolean value that either enables or disables logging for the MSS.
Gets and sets the time interval, in minutes, at which the current trace log session begins capturing data to a new file.
Gets and sets the location for the Event Trace Log (.etl) files for MSS.