lodctrlodctr

适用于: Windows Server (半年通道) ,Windows Server 2019,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012Applies to: Windows Server (Semi-Annual Channel), Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

允许你将性能计数器名称和注册表设置注册或保存到文件中,并指定受信任的服务。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>/s:<filename> 指定性能计数器注册表设置和说明性文本要保存到的文件的名称。Specifies the name of the file to which the performance counter registry settings and explanatory text are saved.
/r/r 从当前注册表设置和与注册表相关的缓存性能文件还原计数器注册表设置和说明性文本。Restores counter registry settings and explanatory text from current registry settings and cached performance files related to the registry.
/r<filename>/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>/t:<servicename> 指示服务 <servicename> 受信任。Indicates that service <servicename> is trusted.
/?/? 在命令提示符下显示帮助。Displays help at the command prompt.

备注Remarks

  • 如果提供的信息包含空格,请使用引号将文本括 (例如,"文件名 1" ) 。If the information that you supply contains spaces, use quotation marks around the text (for example, "file name 1").

示例Examples

若要将当前性能注册表设置和说明性文本保存到文件 "perf backup1.txt",请键入:To save the current performance registry settings and explanatory text to file "perf backup1.txt", type:

lodctr /s:"perf backup1.txt"

其他参考Additional References