What is Catroot & Catroot2 folder? How do you reset catroot2 folder in Windows

Catroot and catroot2 are Windows operating system folders that are required for the Windows Update process. When you run Windows Update, the catroot2 folder stores the signatures of the Windows Update package and helps in its installation.

catroot2 folder

The Cryptographic service makes use of the %windir%\System32\catroot2\edb.log file for the updating process. The updates are stored in the SoftwareDistribution folder which are then used by Automatic Updates to carry out the updating process.

Resetting or deleting the contents pf the catroot2 folder has been known to fix several Windows Update problems.

If you receive a Access Denied or Open in another program message when you go on to delete the catroot2 folder, it ii possible because the Cryptographic service is making use of the log file.

Reset catroot2 folder

To reset the catroot2 folder do this:

Open an elevated Command Prompt, type the following command one after the other and hit Enter:

net stop cryptsvc
md %systemroot%\system32\catroot2.old
xcopy %systemroot%\system32\catroot2 %systemroot%\system32\catroot2.old /s

Next, delete all the contents of the catroot2 folder.

Having done this, in the CMD windows, type the following and hit Enter:

net start cryptsvc

Your catroot folder will be reset, once you start Windows Update again.

NOTE: Please do not delete or rename the Catroot folder. The Catroot2 folder is automatically recreated by Windows, but the Catroot folder is not recreated if the Catroot folder is renamed.

If you find that the catroot or catroot2 folder is missing or does not recreate if you accidentally deleted it, you can create a new folder with this name in the System32 folder, restart your computer and then run Windows Update.

Download this VPN to secure all your Windows devices and browse anonymously
Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP Awardee in Windows (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.

3 Comments

  1. Andy Wurst

    In keeping with the premise of providing commands to accomplish a catroot2 reset, I am suggesting that the following commands could replace the generic instruction of “Next, delete all the contents of the catroot2 folder” NOTE: If these instructions are included in a batch file, then %i should be replace with %%i

    FOR /D %i IN (%systemroot%system32catroot2*) DO RD /S /Q “%i”
    DEL /Q %systemroot%system32catroot2*.*

    Finally, for the poor souls who followed Microsoft’s instructions under KB971058 (like me) by renaming the catroot2 folder – simply re-creating the catroot2 folder won’t help you. You must also restore the necessary privileges for the CryptSvc to access it. The commands to create the folder and assign permissions are:

    md %systemroot%system32catroot2
    icacls.exe c:windowssystem32catroot2 /grant “NT SERVICECryptSvc:(OI)(CI)(F)”

  2. Diederik Werken

    couldn’t you just rename catroot2.bak back to catroot2? That worked for me luckily.

  3. Mark Windsor

    I found a weird work around. If I attempt to rename the catroot2 folder to catroot2.old in c:windowssystem32 and get to the “folder in use try again” dialog box then run the net stop cryptSvc. Next, immediately “retry” the rename, it worked! It seems even though you stop cryptSvc, it starts back quickly but if you actuate the moment of rename instantly after stopping the cryptSvc service, it renames the folder. This gymnastic is a lot easier than a safe mode boot.

Leave a Reply

Your email address will not be published. Required fields are marked *


2 + 7 =