What is the other method to rectify the error code Event ID 2004:Microsoft-Windows-PerfNet on Windows 10?

Shahid Ali 0 Reputation points
2026-01-30T09:30:48.5233333+00:00

Every time when I start up the PC and login, it starts to load very slow. I checked the Event Viewer and noticed many same error daily. (see screenshot). It could be related to Event ID 2004.

Unable to open the Server service performance object. The first four bytes (DWORD) of the Data section contains the status code.

I have tried sfc /scannow and no problem. I might do it again.

I did tried the Windows Rebuild command and Resync the counters/Restart Service:

c:\windows\system32\lodctr.exe /r

  • c:\windows\sysWOW64\lodctr.exe /r

WINMGMT.EXE /RESYNCPERF

Powershell (I don't usually do this because it's for Windows 2008 Server R2 (not Windows 10) but maybe it's familiar, so I just want to try it)

Get-Service -Name "pla" | Restart-Service -Verbose

Get-Service -Name "winmgmt" | Restart-Service -Force -Verbose

The server in service is already set to Automatically. (see screenshot). I am using Windows 10 Home Edition.

Is there another method to resolve it? Is it something to do with Registry or other system files that they're partial disabled or corrupted.

Screenshot 2026-01-30 085822

Screenshot 2026-01-30 090030

Windows for home | Windows 10 | Performance and system failures
0 comments No comments

2 answers

Sort by: Most helpful
  1. Carl-L 21,320 Reputation points Microsoft External Staff Moderator
    2026-02-05T13:43:20.21+00:00

    Hello Shahid Ali,

    After the last command, it should output the line that showing the counter set name server.

    It's unfortunate that it didn't work.

    Disclaimer: Let’s try performing an in-place install or in-place upgrade which will refresh your Windows files and operating system without removing files or applications. That being said, we always recommend that if you have important data, you should back it up before making large system changes. If you want to back up your data first, please do so. Once you are done backing up, you can follow the steps in the following guides:  How to run In-place upgrade in Windows 10.

    Please let me know if there are any updates.

    Was this answer helpful?


  2. Carl-L 21,320 Reputation points Microsoft External Staff Moderator
    2026-01-31T09:48:45.15+00:00

    Hello Shahid Ali.

    Welcome to Microsoft Q&A forum.

    Based on what I see here, the Lanman Server service is running well. So in this case, the cause highly comes from Performance Counter issue. Please try to follow these steps to fix it.

    Disclaimer: Generally, modifying registry subkeys or work group is intended for advanced users, administrators, and IT Professionals. It can help fix some problems, however, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For further protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click How to back up and restore the registry in Windows - Microsoft Support to view the article.

    • Type "PowerShell" in the search bar and choose "Run as administrator"
    • Type reg query "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Performance" /v "Disable Performance Counters" and press Enter.
    • If the value is other than 0. Type these commands in order.
      1. reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Performance" /v "Disable Performance Counters" /t REG_DWORD /d 0 /f
      2. net stop pla & net stop winmgmt
      3. net start winmgmt & net start pla
    • Type these commands and restart your computer.
      1. lodctr /R
      2. %SystemRoot%\SysWOW64\lodctr /R  
      3. winmgmt /resyncperf
      4. net stop pla & net start pla
      5. net stop winmgmt & net start winmgmt
    • Go back to PowerShell and type Get-Counter -ListSet 'Server' | Select-Object CounterSetName to check if Server object is available again.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.