Share via


Lodctr

 

Applies To: Windows 7, Windows Server 2008 R2, Windows Server 2012, Windows 8

Allows you to register or save performance counter name and registry settings in a file and designate trusted services.

Syntax

lodctr <filename> [/s:<filename>] [/r:<filename>] [/t:<servicename>]

Parameters

Parameter

Description

<filename>

Registers the Performance counter name settings and Explain text provided in initialization file FileName.

/s:<filename>

Saves Performance counter registry settings and Explain text to file <filename>.

/r

Restores counter registry settings and Explain text from current registry settings and cached performance files related to the registry.

This option is available only in the Windows Server 2003 operating system.

/r:<filename>

Restores Performance counter registry settings and Explain text from file <filename>.

Warning

If you use the lodctr /r command, you will overwrite all Performance counter registry settings and Explain text, replacing them with the configuration defined in the file specified.

/t:<servicename>

Indicates that service <servicename> is trusted.

/?

Displays Help at the command prompt.

Remarks

If the information that you supply contains spaces, use quotation marks around the text (for example, "<filename>").

Examples

To save the current Performance registry settings and counter Explain text to file perf backup1.txt:

lodctr /s:"perf backup1.txt"

Additional references