Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

LogSettings Class

Published: June 20, 2005

LogSettings Class

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




Enabled property

Gets and sets a Boolean value that either enables or disables logging for the MSS.

RollOverTime property

Gets and sets the time interval, in minutes, at which the current trace log session begins capturing data to a new file.

Location property

Gets and sets the location for the Event Trace Log (.etl) files for MSS.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft