none
LODCTR /R Error Code 2

    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 02, 2012 7:46 AM
    Moderator
  • 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 04, 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 03, 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 02, 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 05, 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 04, 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 06, 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 05, 2017 6:13 PM