Share via

How do I Delete all contents of catroot2 folder but leave the catroot2 folder in place using the Esentutl

Anonymous
2012-12-26T20:25:09+00:00

Hi,  I have received an Event Error CAPI2 ID 257:

 The Cryptographic Services service failed to initialize the Catalog Database. The ESENT error was: -1032.

The online Event Viewer help leads me to this article and fix:

http://social.technet.microsoft.com/wiki/contents/articles/13827.event-id-257-system-catalog-database-integrity.aspx

I understand running the command prompt but the instructions also say to delete the files in the catroot2 folder but leave the folder in place:

  1. Type net start cryptsvc to start Cryptographic Services, and then press ENTER.

Empty the catroot2 folder so that its content can be rebuilt

  1. From the administrative command prompt, run the following commands:
    • net stop cryptsvc
  • md %systemroot%\system32\catroot2.old
  • xcopy %systemroot%\system32\catroot2 %systemroot%\system32\catroot2.old /s
  • Delete all contents of catroot2 folder but leave the catroot2 folder in place
  • Restart the Cryptographic Services by running the following command: net start cryptsvc

I very confused about how I am to delete the contents of the catroot2 folder (do the commands above the instructions saying to delete the contents actually delete the contents, or am I suppose to physically delete the files?  If so, does this esentutl tool
 bring the file to me, or how do I get to the file?  Am I suppose to exit the command prompt at any time during this - I think I should just be exiting it after the last command "net start cryptsvc"

I would be grateful for any help with this.  The problem started because I installed a rootsupd.exe (a Win32 cabinet extractor) for XPsp3 on my Windows 7 64 bit computer.
Windows for home | Other | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2015-08-03T21:10:53+00:00

    Make sure that after renaming the catroot2 folder that you re-create a new one and set the permissions appropriately.  The following command will add the cryptography service back to the permissions set:

    icacls.exe c:\windows\system32\catroot2 /grant "NT SERVICE\CryptSvc:(OI)(

    CI)(F)"

    The other option is to run sfc.exe /scannow which will also detect that the catroot2 folder is missing and create it with the correct permissions.

    Was this answer helpful?

    20+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2012-12-27T16:21:46+00:00

    Hi,

    Thank you for posting in Microsoft Community.

    As per the description, you want to know how to delete the contents of the catroor2.old folder but leave the catroot2 folder in place using the Esentutl.

    The commands copy the contents to catroot2.old but does not actually remove them from catroot2.

    It’s fine to simply rename the folder instead, make sure to run the net stop command in the article, then run this instead of md or xcopy:

    ren %systemroot%\system32\catroot2 catroot2.old1

    After that, run net start cryptsvc and verify.

    Post back with the result. If you need further assistance, I'll be glad to assist you.

    Was this answer helpful?

    7 people found this answer helpful.
    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more