- C:
- $WinREAgent
FolderRisk: Caution
- Hidden
$WinREAgent C:\$WinREAgent
Hidden working folder created during a Windows update or upgrade, tied to updating the Windows Recovery Environment (WinRE).
What it’s for
$WinREAgent is a hidden folder created at the root of the drive during a Windows update or upgrade. The Windows Recovery Environment (WinRE) agent uses it as a workspace when WinRE is updated or replaced, and keeps what it needs there to roll back if the operation fails. Its name echoes the agent (REAgent) that the reagentc command drives.
What it contains
- Temporary files related to the WinRE update.
- It may remain after the update ends, sometimes large.
Risks and best practices
- Leave it in place during an update and until the restart that completes it. Once updates are finished and the system has restarted, it is generally no longer needed, so free the space with Disk Cleanup rather than by hand.
- Do not confuse it with
C:\Recoveryor the recovery partition, which must be kept. - If a WinRE update fails, check WinRE status (
reagentc /info) and the free space on the recovery partition before deleting anything.
Useful commands
# As administrator: WinRE statusreagentc /info
# Presence and contents (hidden folder)Get-ChildItem 'C:\$WinREAgent' -Force -ErrorAction SilentlyContinue | Select-Object Name, LastWriteTime
# As administrator: simulated deletion (remove -WhatIf to run)Remove-Item 'C:\$WinREAgent' -Recurse -Force -WhatIf