locked
LODCTR /R Error Code 2 RRS feed

  • General discussion

  • Hello, I am trying to rebuild the list of available counters as one of the technet articles is suggesting - but I am getting a message that says "Error: Unable to rebuild performance counter setting from system backup store, error code is 2".

    Reason to why I am doing it is because I got 2 errors in my event viewer: Event ID 3009 and 3017.

    Can anyone help with this? Thanks in advance!

    Wednesday, October 31, 2012 6:20 PM

All replies

  • Hi ,


    It is better to provide more detail information about the Event errors for us to analyse this issue.


    In addition, regarding the errors, you can refer to Event ID 3009 to check the result.


    Regards,


    Vincent Wang

    TechNet Community Support

    Friday, November 2, 2012 7:46 AM
  • Hello,

    I've resolved with the following steps:

    PS C:\Windows\system32> cmd
    Microsoft Windows [Version 6.2.9200]
    (c) 2012 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>lodctr /R

    Error: Unable to rebuild performance counter setting from system backup store, error code is 2
    C:\Windows\system32>cd ..

    C:\Windows>cd syswow64

    C:\Windows\SysWOW64>lodctr /R

    Info: Successfully rebuilt performance counter setting from system backup store
    C:\Windows\SysWOW64>winmgmt.exe /RESYNCPERF

    C:\Windows\SysWOW64>

    Regards-

    Matteo


    Matteo D'Andrea

    Friday, June 20, 2014 7:44 AM
  • I had the error:

    Error: Unable to rebuild performance counter setting from system backup store, error code is 2PS

    I closed the (PowerShell) window, then ran cmd as Administrator and repeated the lodctr /R and got :

    Info: Successfully rebuilt performance counter setting from system backup store

    Sometimes banging your head against the wall twice fixes the problem.

    Thursday, July 10, 2014 11:34 AM
  • Thanks. Worked for me.
    Thursday, September 4, 2014 2:43 AM
  • I followed these steps and successfully rebuilt performance counters to remove 2004, but now I get 1008 for .net perf mon.   Oy!
    Tuesday, September 30, 2014 6:38 PM
  • Just tried it out myself it failed first time - did it again and it worked! Thanks 
    Monday, November 24, 2014 1:12 PM
  • The solution for me was to open the command prompt in Administrator mode.
    Wednesday, December 3, 2014 7:41 PM
  • Exactly as you mentioned. Good job !
    Saturday, January 24, 2015 10:21 AM
  • I got the same error using admin mode

    I:\>lodctr /r

    Error: Unable to rebuild performance counter setting from system backup store, e
    rror code is 2
    I:\>c:

    C:\>cd windows

    C:\Windows>cd syswow64

    C:\Windows\SysWOW64>lodctr /r

    Error: Unable to rebuild performance counter setting from system backup store, e
    rror code is 2
    C:\Windows\SysWOW64>lodctr /r

    Error: Unable to rebuild performance counter setting from system backup store, e
    rror code is 2
    C:\Windows\SysWOW64>

    Wednesday, March 18, 2015 9:36 AM
  • lodctr /r  will give the error

    lodctr /R will not

    The R must be capital R.

    Tuesday, March 24, 2015 2:35 PM
  • Thanks guys ! Horrible error , renders gaming pretty much useless

    Thursday, April 2, 2015 12:14 AM
  • Right R must be the capital R worked for me



    Monday, July 20, 2015 3:43 PM
  • Follow above steps from "Matteo" fixed the issue for me.

    Thanks,

    Anirudh

    Wednesday, August 5, 2015 4:00 PM
  • You are either smart or you are a Microsoft agent assigned to help us

    You are a great example...

    thx

    Sunday, December 27, 2015 2:46 AM
  • works for me thank you
    Thursday, February 4, 2016 11:52 AM
  • I got the same error using admin mode

    I:\>lodctr /r

    Error: Unable to rebuild performance counter setting from system backup store, e
    rror code is 2
    I:\>c:

    C:\>cd windows

    C:\Windows>cd syswow64

    C:\Windows\SysWOW64>lodctr /r

    Error: Unable to rebuild performance counter setting from system backup store, e
    rror code is 2
    C:\Windows\SysWOW64>lodctr /r

    Error: Unable to rebuild performance counter setting from system backup store, e
    rror code is 2
    C:\Windows\SysWOW64>

    this solution worked great after getting perflib errors in the event viewer (2003 and 1023) and when getting an error code 2 from running lodctr /r. only difference is I ran lodctr from system32, not syswow64. but it still worked.

    Windows 10 Pro 1511 (build 10586.318) x64

    Sunday, May 15, 2016 10:28 PM
  • Yes Thanks,  Running it again Worked for me also.
    Wednesday, July 6, 2016 12:46 AM
  • Thanks - this worked for me, and I used a lower case r:

    c:\Windows\SysWOW64>lodctr /r

    Info: Successfully rebuilt performance counter setting from system backup store
    c:\Windows\SysWOW64>

    Friday, July 15, 2016 1:53 PM
  • Work for me
    Monday, October 10, 2016 2:36 PM
  • Thanks MATEO.

    Your sulution Worked for me too

    Thanks alot.

    Best regards.


    Jorge Sanchez Cruz

    Wednesday, April 5, 2017 6:13 PM
  • Excellent! That did it. Just had to do an iisreset after the resync.

    Thanks heaps.

    Monday, May 15, 2017 11:15 AM
  • Works! Great!

    Dario de Judicibus

    Monday, May 29, 2017 11:27 AM
  • Worked for me.
    Saturday, August 12, 2017 1:27 PM
  • Thanks Matteo. Worked for me.
    Thursday, November 2, 2017 3:42 PM
  • Matteo's suggestion worked for me,
    Tuesday, April 3, 2018 6:31 AM
  • Thank you for posting this. It fixed my problem! See https://answers.microsoft.com/en-us/windows/forum/windows_10-update/windows-update-failure-0x800f0922-and-stuck-at/40038f3a-599b-4083-ac72-24d0fb7a5a8b?auth=1
    Friday, September 21, 2018 2:07 AM
  • What actually worked for me is just re-run the same command without changing ANYTHING at all, including the current directory. (Of course have to run cmd as Admin first)
    Saturday, February 2, 2019 1:30 PM
  • This right here fixed the issue.
    Wednesday, May 8, 2019 1:55 PM