大网数据广告活动
Windows排障命令

lodctr

· 52CE 我爱测

Reference article for the lodctr command, which allows you to register or save performance counter name and registry settings in a file and designate trusted services.

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> Specifies the name of the initialization file that registers the performance counter name settings and explanatory text.
/s:<filename> Specifies the name of the file to which the performance counter registry settings and explanatory text are saved.
/r Restores counter registry settings and explanatory text from current registry settings and cached performance files related to the registry.
/r:<filename> Specifies the name of the file that restores the performance counter registry settings and explanatory text.Warning: If you use this command, you'll overwrite all performance counter registry settings and explanatory text, replacing them with the configuration defined in the specified file.
/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, "file name 1").
  • An exit code of 0 indicates the command line syntax was correct. It doesn't mean the operation was successful. Check the output from the command for potential error messages.

Examples

To save the current performance registry settings and explanatory text to file "perf backup1.txt", type:

lodctr /s:"perf backup1.txt"

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 10/22/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。