Enabled Property

Enabled Property

Gets and sets a Boolean value that, if true, begins an event trace session immediately and persists the Enabled setting so that trace sessions are immediately started at every subsequent system startup.

LogSettings.Enabled = Boolean

Part

Description

Boolean

True if the LogSettings class is enabled; False if it is not.

Qualifiers

Qualifier

Value

Description

Restart

False

After changes to this property value, the service does not need to restart to implement the changes.

DefaultValue

False

Default value for this property.

Remarks

This property is exposed in the Microsoft Speech Server Management Console snap-in.

The default value for the Enabled property is False.

Windows Management Instrumentation (WMI) Script Example

The following WMI script sets the Enabled to true, that is, turns on trace logging.

Set logsettings = GetObject("winmgmts:root\MSS:LogSettings=@")

logsettings.Enabled = true
logsettings.Put_

Member Of

LogSettings class