Windows cannot load the extensible counter dll

Windows cannot load the extensible counter dll

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Asked by:

Question

Windows 10 1809

Windows cannot load the extensible counter DLL «C:\WINDOWS\system32\sysmain.dll» (Win32 error code The specified module could not be found.).

All replies

This means that you either do not have the correct DLL or are missing a DLL (sysmain.dll).

So we’d better copy this dll file from other same system version machine and paste it to this machine to replace sysmain.dll. The file location is C:\WINDOWS\system32\sysmain.dll.

Then we could use command to registry this dll file.

How to Register a DLL File in Windows

Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

Hope it could be helpful

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

  • Proposed as answer by Carl Fan Microsoft contingent staff Wednesday, April 10, 2019 8:16 AM

Haven’t received your message a few days, was your issue resolved?
I am proposing previous helpful replies as «Answered». Please feel free to try it and let me know the result. If the reply is helpful, please remember to mark it as answer which can help other community members who have same questions and find the helpful reply quickly.
Best regards,
Carl

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

  • Proposed as answer by Carl Fan Microsoft contingent staff Monday, April 15, 2019 9:48 AM

I have similar issue. I checked the sysmain.dll and it is present in the system32 folder and properly registered.

Any other ideas what can cause this issue?

Same here, I also have sysmain.dll present in the system32 folder and get the same error error:

Log Name: Application
Source: Microsoft-Windows-Perflib
Date: 10/8/2019 6:58:39 AM
Event ID: 1023
Task Category: None
Level: Error
Keywords:
User: SYSTEM
Computer: DESKTOP-1L3CUFT
Description:
Windows cannot load the extensible counter DLL «C:\WINDOWS\system32\sysmain.dll» (Win32 error code The specified module could not be found.).
Event Xml:

1023
1
2
0
0
0x8000000000000000

2175

Application
DESKTOP-1L1BUTF

C:\WINDOWS\system32\sysmain.dll
126

The same for me! Any news on this problem?

It’s been half a year and still no answer from Microsoft?? What’s the point of this forum then?

Читайте также:  Linux get all file names

I have the same problem and yes these files are present on my system. Chkdsk c: /f didn’t find anything interesting to fix

I have similar issue. I checked the sysmain.dll and it is present in the system32 folder and properly registered.

Any other ideas what can cause this issue?

URL to Knowledge Article http://kb.eventtracker.com/evtpass/evtpages/EventId_1023_Microsoft-Windows-Perflib_67502.asp

Cause :
The list of counters is corrupt
If the performance counter could not unload the strings for the specified service, the registry might be corrupted.
Resolution :
Rebuild the list of performance counters
Membership in the local Administrators group is required to complete this procedure.
To rebuild the list of counters in the registry:

  1. Click Start , expand All Programs , and expand Accessories .
  2. Right-click Command Prompt , and then click Run as administrator .
  3. At the command prompt, type lodctr /r , and then press ENTER.

Cause :
A required DLL is disabled
Resolution :
Re-enable a required DLL
Membership in the local Administrators group is required to complete this procedure.
To enable a performance library DLL:

  1. Click Start , click All Programs , and then click Accessories .
  2. Right-click Command Prompt , and then click Run as administrator .
  3. At the command prompt, type lodctr /e: and then press ENTER, where is the name of the library.

BSOD — Windows cannot load the extensible counter DLL «C:\Windows\system32\sysmain.dll»

DISM /Online /Cleanup-Image /RestoreHealth

attached event viewer info

Replies (2) 

Thank you for writing to Microsoft Community Forums.

I understand that you’re facing issues with Blue Screen on your PC, and I certainly appreciate your efforts in trying to resolve the issue.

We will certainly look into this for you.

For further clarity on the issue, please respond to the questions below:

  1. Which build version of Windows 10 are you using currently?
  2. Are you aware of any changes made to the PC prior to which you weren’t facing this issue?
  3. When exactly do you receive the Blue Screens?

Meanwhile, I would suggest you to refer the article Troubleshoot blue screen errors and see if that helps.

You can also try booting the PC in Safe Mode and see if it crashes. Refer the article Start your PC in safe mode in Windows 10

If the PC is not crash in Safe Mode, then try booting the PC in Clean Boot and see if the PC crashes. Refer the article How to perform a clean boot in Windows

Performing a clean boot will start the computer with minimal set of drivers and programs, to determine whether a background program is causing the issue. Some of the Startup programs will not load after performing a clean boot on the computer. However, that functionality will return when you reset the computer to start normally after finishing the troubleshooting.

If the PC doesn’t crash after performing Clean Boot, then please refer the section How to determine what is causing the problem after you do a clean boot to identify the root cause of the issue.

Читайте также:  Забыл пароль от рабочего стола windows

Note: Please refer the section Reset the computer to start normally after clean boot troubleshooting to boot the computer in to normal mode after troubleshooting

However, it would be great if you could upload the files on OneDrive and share the link to us.​ If we can analyze the dump file, we may be able to narrow down the cause of the error. The Dump files are located in C:\Windows\MiniDump folder.

Let us know if you need any further assistance, we will be glad to assist you.

Windows cannot load the extensible counter dll

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Asked by:

Question

I have two windows 2019 core failover cluster in production environment. I have been getting following errors on both

Windows cannot load the extensible counter DLL «C:\Windows\System32\perfts.dll» (Win32 error code The specified module could not be found.).

I would much appreciate that if I can find a solution for the above issue.

All replies

As the following Microsoft official article says, it is no perfts.dll file loaded in Windows server core.

Try to run the following command line as administrator to repair corrupted system files.

DISM.exe /Online /Cleanup-image /Restorehealth

When I ran Dism.exe/online/Cleanup-image /Restorehealth

it stop with errors at 89.8%

2020-01-14 10:21:30, Error DISM DISM Package Manager: PID=12232 TID=10412 Failed to get the Update through CBS. — CDISMPackage::Internal_OpenFeature(hr:0x800f080c)
2020-01-14 10:21:30, Error DISM DISM Package Manager: PID=12232 TID=10412 Failed to get the underlying CBS Feature — CDISMPackage::OpenFeature(hr:0x800f080c)
2020-01-14 10:21:30, Error DISM API: PID=10616 TID=5424 Failed to open feature Windows-Defender-Default-Definitions — CDisableFeatureCommandObject::InternalExecute(hr:0x800f080c)
2020-01-14 10:21:30, Error DISM API: PID=10616 TID=5424 InternalExecute failed — CBaseCommandObject::Execute(hr:0x800f080c)
2020-01-14 10:21:30, Error DISM API: PID=10616 TID=3256 CDisableFeatureCommandObject internal execution failed — DismDisableFeatureInternal(hr:0x800f080c)

Does the issue bring any affection to your environment and production?

Try to check if perfts.dll located in C:\Windows\System32 on your server core.

We could copy another one from same system version device to replace it.

Also we should make sure your account have full privilege for the following registry key.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLServer\Performance]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLServer\Performance]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLServer\Performance\Library]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Perflib\009\Counter]

Here is an official article similar with your issue, please check on your side.

If it will not bring any affection on your production, I recommend to miss it as it is safe to use your system.

Читайте также:  Hp support assistant для windows 10 не запускается

» Please note that new questions regarding ‘Windows 10 Installation, Setup, and Deployment’ could NOT be posted in this forum anymore. This thread could be followed up until Mar-30th. We will be moving your thread to Microsoft Q&A if the deadline is missed. Register our new platform Microsoft Q&A (Preview)! for new questions or discussion. Check more details on sticky post.

Windows cannot load the extensible counter dll

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Asked by:

Question

I have two windows 2019 core failover cluster in production environment. I have been getting following errors on both

Windows cannot load the extensible counter DLL «C:\Windows\System32\perfts.dll» (Win32 error code The specified module could not be found.).

I would much appreciate that if I can find a solution for the above issue.

All replies

As the following Microsoft official article says, it is no perfts.dll file loaded in Windows server core.

Try to run the following command line as administrator to repair corrupted system files.

DISM.exe /Online /Cleanup-image /Restorehealth

When I ran Dism.exe/online/Cleanup-image /Restorehealth

it stop with errors at 89.8%

2020-01-14 10:21:30, Error DISM DISM Package Manager: PID=12232 TID=10412 Failed to get the Update through CBS. — CDISMPackage::Internal_OpenFeature(hr:0x800f080c)
2020-01-14 10:21:30, Error DISM DISM Package Manager: PID=12232 TID=10412 Failed to get the underlying CBS Feature — CDISMPackage::OpenFeature(hr:0x800f080c)
2020-01-14 10:21:30, Error DISM API: PID=10616 TID=5424 Failed to open feature Windows-Defender-Default-Definitions — CDisableFeatureCommandObject::InternalExecute(hr:0x800f080c)
2020-01-14 10:21:30, Error DISM API: PID=10616 TID=5424 InternalExecute failed — CBaseCommandObject::Execute(hr:0x800f080c)
2020-01-14 10:21:30, Error DISM API: PID=10616 TID=3256 CDisableFeatureCommandObject internal execution failed — DismDisableFeatureInternal(hr:0x800f080c)

Does the issue bring any affection to your environment and production?

Try to check if perfts.dll located in C:\Windows\System32 on your server core.

We could copy another one from same system version device to replace it.

Also we should make sure your account have full privilege for the following registry key.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLServer\Performance]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLServer\Performance]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLServer\Performance\Library]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Perflib\009\Counter]

Here is an official article similar with your issue, please check on your side.

If it will not bring any affection on your production, I recommend to miss it as it is safe to use your system.

» Please note that new questions regarding ‘Windows 10 Installation, Setup, and Deployment’ could NOT be posted in this forum anymore. This thread could be followed up until Mar-30th. We will be moving your thread to Microsoft Q&A if the deadline is missed. Register our new platform Microsoft Q&A (Preview)! for new questions or discussion. Check more details on sticky post.

Оцените статью