unable to rename catroot2 folder

great one 15 Reputation points
2025-12-04T20:12:12.0966667+00:00

when i try to rename the catroot2 folder either by going into folder maunally

i get a message saying more or less that the folder is in use by another program and doesnt allow it

when i try with the command prompt ( yes with admin)

i get a access denied

PS C:\Users\scoot> ren C:\Windows\System32\catroot2 Catroot2.old

ren : Access to the path 'C:\Windows\System32\catroot2' is denied.

At line:1 char:1

  • ren C:\Windows\System32\catroot2 Catroot2.old
  • 
        + CategoryInfo          : WriteError: (C:\Windows\System32\catroot2:String) [Rename-Item], IOException
    
        + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand
    
    

thinking theres a issue with the cryptograph service not stopping in services.msc

i try there and get error 1052

the software distribution folder was able to get renamed not sure whats causing the catroot2 to not be able

Windows for home | Windows 11 | Settings
0 comments No comments
{count} votes

16 answers

Sort by: Most helpful
  1. _AW_ 64,056 Reputation points Volunteer Moderator
    2025-12-06T05:45:43.65+00:00

    I just realised that in your initial screenshot and copy/pasted output, you were running the commands from an admin Windows Powershell not admin Command Prompt. That is the cause of them not succeeding.

    0 comments No comments

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.