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.
LODCTR Syntax:
Section titled “LODCTR Syntax:”lodctr [\\computername] filenameWindows LODCTR Options:
Section titled “Windows LODCTR Options:”| Option | Description |
|---|---|
| /? | Displays help for using LODCTR command. |
LODCTR Parameters:
Section titled “LODCTR Parameters:”| Parameter | Description |
|---|---|
| computername | Specifies the name of the remote computer. |
| filename | Specifies the name of the extensible counter DLL file. |
Load all Performance Counters
Section titled “Load all Performance Counters”lodctr /s:PerfStringBackup.INILoads all performance counters from the specified INI file.
Rebuild Performance Counter Strings
Section titled “Rebuild Performance Counter Strings”lodctr /rRebuilds 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”lodctr /r:PerfStringBackup.INIRestores performance counter settings from a previously created backup INI file.
Unload Performance Counters
Section titled “Unload Performance Counters”lodctr /uUnloads all performance counters.
Query Performance Counters Status
Section titled “Query Performance Counters Status”lodctr /qDisplays the current status and settings of all performance counters.
Install Language Specific Performance Counters
Section titled “Install Language Specific Performance Counters”lodctr /m:PerfStringBackup.INILoads performance counters with language-specific settings from the specified INI file.
Backup Performance Counter Strings
Section titled “Backup Performance Counter Strings”lodctr /s:PerfStringBackup.INISaves the current performance counter settings to a backup INI file.
Reinitialize Performance Counters
Section titled “Reinitialize Performance Counters”lodctr /iReinitializes all performance counters.
How do I use lodctr in Windows?
Section titled “How do I use lodctr in Windows?”To use the lodctr command in Windows, execute the following command:
lodctr --hWhat does lodctr do in CMD?
Section titled “What does lodctr do in CMD?”The lodctr command in CMD is used to update registry values and performance counter names from a specified text file.
lodctr C:\Windows\inf\PerfStringBackup.iniHow 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.
lodctr /rHow 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:
lodctr /uHow 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:
lodctr /qHow 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:
lodctr /rCan 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:
lodctr /s:C:\Windows\inf\PerfStringBackup.iniHow 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:
lodctr /rHow 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:
lodctr /m:C:\Windows\inf\PerfStringBackup.iniApplications of the LODCTR Command
Section titled “Applications of the LODCTR Command”- 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