OPERATING SYSTEMSOS Windows

Fix Event Error 1020 & 1008 Microsoft-Windows-Perflib error


Users sometimes begin to see Event error 1020 & 1008 Microsoft-Windows-Perflib error in Windows 10 for no apparent reason. More importantly, they have no idea to repair it. The error message looks something like this –

Event Error 1020 or 1008 Microsoft-Windows-Perflib error

1] Event: 1008

The Open Procedure for service “.NETFramework” in DLL “C:WINDOWSsystem32mscoree.dll” failed with error code The system cannot find the file specified. Performance data for this service will not be available.

2] Event: 1020

The required buffer size is greater than the buffer size passed to the Collect function of the “C:WindowsSystem32perfts.dll” Extensible Counter DLL for the “LSM” service. The given buffer size was 34184 and the required size was 43160.

Resolving this issue requires a bit of work. Follow the instructions given below to fix it – after you have created a system restore point.

Event Error 1020 or 1008 Microsoft-Windows-Perflib error

Error event 1020 and 1008 are being reported because a list of counters is corrupt and a required DLL is disabled. When the performance counter cannot unload the strings for the specified service, the registry might get corrupted and show Error 1020. To fix this issue, rebuild the list of performance counters.

  1. Click Start.
  2. Type CMD in the search bar.
  3. Right-click Command Prompt.
  4. Choose Run as administrator.
  5. Enter the following command and hit Enter key– CD %SYSTEMROOT%System32
  6. At the command prompt, type lodctr /r.
  7. Press ENTER.
  8. Similarly for error 1008, type lodctr /e:<DLL name> and then press ENTER.

Please note that the Membership in the local Administrators group is required to complete this procedure. To rebuild the list of counters in the registry do the following.

Click on the Windows 10 Start button.

In the Search box that appears, type CMD or Command Prompt.

When the option is seen, right-click it and select Run as administrator option.

Rebuilt Performance Counter

Now, in the Command Prompt window that appears on your screen, enter the following command and hit Enter key – cd %SYSTEMROOT%System32.

Again enter the following command and hit Enter key – lodctr /r.

Similarly, 1008 Microsoft-Windows-Perflib error occurs when the required DLL is disabled. To resolve the issue, type lodctr /e:</<DLL name> and then press ENTER (replace <DLL name> with the file name of the library).

Hope this helped.

Microsoft Windows Perflib Error

Source link

Leave a Reply

Your email address will not be published. Required fields are marked *