Skip to content

LODCTR command in Windows

The Windows lodctr command is used to manage performance counter names in the registry and explain to the system where to find them. This command is useful for troubleshooting performance monitoring and tuning issues. By using lodctr, you can add or remove performance counters, rebuild the performance counter list, and resolve issues related to missing or corrupted counter names.

Terminal window
lodctr [\\computername] filename
OptionDescription
/?Displays help for using LODCTR command.
ParameterDescription
computernameSpecifies the name of the remote computer.
filenameSpecifies the name of the extensible counter DLL file.
Terminal window
lodctr /s:PerfStringBackup.INI

Loads all performance counters from the specified INI file.

Terminal window
lodctr /r

Rebuilds the string and information for all registered performance counters.

Restore Performance Counters from a Backup File

Section titled “Restore Performance Counters from a Backup File”
Terminal window
lodctr /r:PerfStringBackup.INI

Restores performance counter settings from a previously created backup INI file.

Terminal window
lodctr /u

Unloads all performance counters.

Terminal window
lodctr /q

Displays the current status and settings of all performance counters.

Install Language Specific Performance Counters

Section titled “Install Language Specific Performance Counters”
Terminal window
lodctr /m:PerfStringBackup.INI

Loads performance counters with language-specific settings from the specified INI file.

Terminal window
lodctr /s:PerfStringBackup.INI

Saves the current performance counter settings to a backup INI file.

Terminal window
lodctr /i

Reinitializes all performance counters.

To use the lodctr command in Windows, execute the following command:

Terminal window
lodctr --h

The lodctr command in CMD is used to update registry values and performance counter names from a specified text file.

Terminal window
lodctr C:\Windows\inf\PerfStringBackup.ini

How can I restore performance counter names with lodctr?

Section titled “How can I restore performance counter names with lodctr?”

You can restore performance counter names using the lodctr command by referencing the Backup Registry File.

Terminal window
lodctr /r

How do I unload all performance counter names with lodctr?

Section titled “How do I unload all performance counter names with lodctr?”

To unload all performance counter names using lodctr, you can use the following command:

Terminal window
lodctr /u

How can I list all performance counter names registered with lodctr?

Section titled “How can I list all performance counter names registered with lodctr?”

To list all performance counter names registered with lodctr, you can run the command:

Terminal window
lodctr /q

How do I reset the performance counter names to default using lodctr?

Section titled “How do I reset the performance counter names to default using lodctr?”

You can reset the performance counter names to default by executing the following lodctr command:

Terminal window
lodctr /r

Can I backup performance counter names with lodctr?

Section titled “Can I backup performance counter names with lodctr?”

Yes, you can backup performance counter names using the lodctr command as shown in the example below:

Terminal window
lodctr /s:C:\Windows\inf\PerfStringBackup.ini

How do I reload all performance counter names with lodctr?

Section titled “How do I reload all performance counter names with lodctr?”

To reload all performance counter names using lodctr, run the following command:

Terminal window
lodctr /r

How do I update performance counter settings with lodctr?

Section titled “How do I update performance counter settings with lodctr?”

You can update performance counter settings with lodctr using a specified INI file, as illustrated in the example below:

Terminal window
lodctr /m:C:\Windows\inf\PerfStringBackup.ini
  • Loading performance counter names from a specified .ini file
  • Rebuilding the perf registry strings and info from scratch based on the values in the .ini file
  • Restoring all performance counters to their default settings
  • Updating all installed performance counters with the latest version information available in the registry