Share via

REAgentC does not let me enable Windows RE

Anonymous
2023-06-20T00:54:51+00:00

I have been attempting to factory reset my computer and thus have attempted to enable the Windows RE using REAgentC, more specifically running reagentc /enable. Whenever I do so, I get the following error message:

REAGENTC.EXE: Operation failed: b7 

REAGENTC.EXE: An error has occurred.

This is the output of reagentc /info:

Windows Recovery Environment (Windows RE) and system reset configuration

Information: 

    Windows RE status:         Disabled 

    Windows RE location: 

    Boot Configuration Data (BCD) identifier: 00000000-0000-0000-0000-000000000000 

    Recovery image location: 

    Recovery image index:      0 

    Custom image location: 

    Custom image index:        0 

REAGENTC.EXE: Operation Successful.

And this is what my current disk partition looks like:

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info

  ----------  ---  -----------  -----  ----------  -------  ---------  --------

  Volume 0     C   OS           NTFS   Partition    456 GB  Healthy    Boot

  Volume 1         ESP          FAT32  Partition    250 MB  Healthy    System

  Volume 2         Image        NTFS   Partition     17 GB  Healthy    Hidden

  Volume 3         DELLSUPPORT  NTFS   Partition   1384 MB  Healthy    Hidden

Any help would be greatly appreciated.

Windows for home | Windows 11 | Recovery and backup

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

Answer accepted by question author

  1. Anonymous
    2023-06-20T05:21:33+00:00

    Hi Carljung,

    Welcome to Microsoft Community.

    I'm Hahn and I'm here to help you with your concern.

    It seems that you are encountering an error when trying to enable the Windows Recovery Environment (Windows RE) using the REAgentC tool. This tool is used to manage the Windows RE settings, but it appears to be failing in your case.

    This issue may be caused by a missing or corrupted Windows RE image file (Winre.wim) in the \Windows\System32\Recovery folder.

    To troubleshoot the issue, here are a few suggestions:

    1. Check if the Winre.wim file exists in the \Windows\System32\Recovery folder. If not, you can copy it from another working computer with the same Windows version and architecture, or from the Windows installation media.
    2. Run the command reagentc /setreimage /path <path_to_Windows_RE_image> to set the location of the Windows RE image file. For example, if the file is in C:\Windows\System32\Recovery, run reagentc /setreimage /path C:\Windows\System32\Recovery.
    3. Run the command reagentc /enable to enable Windows RE. If you get an error message, try running reagentc /disable first and then reagentc /enable again.
    4. Run the command reagentc /info to verify that Windows RE is enabled and has a valid location.
    5. Check the BCD configuration: The "Boot Configuration Data (BCD) identifier" in the reagentc /info output is showing zeros, indicating an issue with the BCD configuration. You can try rebuilding the BCD by running the following command in an elevated Command Prompt: bcdboot C:\Windows /s C: This command assumes that your Windows installation is located on the C: drive. Adjust it accordingly if your system is installed on a different drive.
    6. Ensure system integrity: It's possible that some system files related to the Windows RE are corrupted. You can run the System File Checker (SFC) utility to scan and repair any corrupted files. Open an elevated Command Prompt and enter the following command: Use the System File Checker tool to repair missing or corrupted system files - Microsoft Support**** sfc /scannow Let the scan complete, and if any errors are found, SFC will attempt to repair them.
    7. If the above steps don't resolve the issue, you might consider performing a clean installation of Windows. This will reinstall the operating system and recreate the necessary system partitions, including the Windows RE. Windows 11 Clean Installation (microsoft.com) Disclaimer: At this point, we have exhausted all troubleshooting and I recommend that we try to perform a clean install to get your computer back into a working condition. Please ensure that you backup any important data, including Documents, Pictures, Videos, and more.

    If there is anything not clear, please do not hesitate to let me know.

    Your Sincerely

    Hahn - MSFT | Microsoft Community Support Specialist

    40+ people found this answer helpful.
    0 comments No comments

15 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-11-04T02:24:33+00:00

    What should I do if there is no Windows RE Location listed?

    10 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-02-03T14:17:20+00:00

    why is the path not working

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-12-23T13:35:14+00:00

    C:\Users\IBRAHIM KHALIL>reagentc/enable This command can only be executed from an elevated command prompt.

    REAGENTC.EXE: Operation failed: 5

    REAGENTC, EXE: An error has occurred.

    C:\Users\IBRAHIM KHALIL

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-03-26T00:55:14+00:00

    Hahn, bonjour

    J'essaye désespérément de réinitialiser mon PC depuis plusieurs jours mais je reçois toujours des messages d'erreur.
    Aussi bien en utilisant le processus classique de Windows: mise à jour et sécurité / récupération / réinitialiser le PC / commencer / supprimer tout / environnement de récupération introuvable

    ou en passant par l'invite de commande comme vous l'avait expliqué ci-dessus et j'ai le message d'erreur: impossible activer Windows RE ....... lecteur Bitlocker activé.

    C:\WINDOWS\system32>reagentc/enable

    REAGENTC.EXE : impossible d'activer Windows RE sur un volume avec le chiffrement de lecteur Bitlocker activé

    D'avance, merci à vous de m'éclairer sur les actions à réaliser pour passer ces barrières et pouvoir réinitialiser mon PC.
    Cordialement,
    Cyrille

    0 comments No comments