Skip to content

UNLODCTR command in Windows

The Windows unlodctr command is used to remove the performance counter names and explain text for a particular service or driver. This command helps in cleaning up unnecessary or corrupted performance counter information on the system.

Terminal window
unlodctr [service_ini_file]
OptionDescription
ParameterDescription
service_ini_fileSpecifies the .ini file containing the counters

Unload a Performance Counter from the system

Section titled “Unload a Performance Counter from the system”
Terminal window
unlodctr ExampleCounter

Removes the specified performance counter from the system.

Restore all Performance Counters to their original state

Section titled “Restore all Performance Counters to their original state”
Terminal window
unlodctr *

Restores all performance counters to their original state and removes all custom changes.

Terminal window
unlodctr Counter1 Counter2

Unloads multiple specified performance counters from the system.

Terminal window
unlodctr "Counter*"

Removes performance counters that match the specified wildcard pattern.

Terminal window
unlodctr -m Counter1 "Counter 2"

Unloads the specified counters from the system and removes them from the registry.

Terminal window
unlodctr /u:CounterName

Unloads the specified performance counter for the default language.

Terminal window
unlodctr /r:CounterName

Removes the specified performance counter from the remote computer.

Terminal window
unlodctr -q CounterName

Unloads the specified performance counter without showing a confirmation prompt.

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

Terminal window
unlodctr --backup MyService

What is the purpose of the unlodctr command?

Section titled “What is the purpose of the unlodctr command?”

The unlodctr command is used to remove the counters of a service or driver from the Windows registry.

How can I unload performance counters using unlodctr?

Section titled “How can I unload performance counters using unlodctr?”

To unload performance counters using unlodctr, you can specify the service or driver name as shown in the following command:

Terminal window
unlodctr MyService

Can unlodctr be used to backup performance counter settings?

Section titled “Can unlodctr be used to backup performance counter settings?”

Yes, you can backup performance counter settings using the unlodctr command. Here is an example of how to back up the settings:

Terminal window
unlodctr --backup MyService

How do I remove the performance counter settings backup with unlodctr?

Section titled “How do I remove the performance counter settings backup with unlodctr?”

To remove the performance counter settings backup using unlodctr, you can use the following command:

Terminal window
unlodctr --backup MyService --remove

Is it possible to restore performance counter settings with unlodctr?

Section titled “Is it possible to restore performance counter settings with unlodctr?”

Yes, you can restore performance counter settings using the unlodctr command. Here is an example of how to restore the settings:

Terminal window
unlodctr --restore MyService

How can I list the performance counters loaded in Windows using unlodctr?

Section titled “How can I list the performance counters loaded in Windows using unlodctr?”

To list the performance counters loaded in Windows using unlodctr, you can execute the following command:

Terminal window
unlodctr --list

What happens if I try to unload performance counters that are not loaded?

Section titled “What happens if I try to unload performance counters that are not loaded?”

If you try to unload performance counters that are not currently loaded, you will receive an error message indicating that the specified service or driver is not found.

Can I use the unlodctr command to troubleshoot performance counter issues in Windows?

Section titled “Can I use the unlodctr command to troubleshoot performance counter issues in Windows?”

Yes, the unlodctr command can be helpful in troubleshooting performance counter issues by removing and reloading specific counters as needed.

  • Unloads the counters used by the specified service or application
  • Removes the counter names and explain text for the specified service or application from the Windows registry