REAgentC.exe

Configure Windows Recovery Environment (Windows RE) and System Reset.

Syntax

   Display Windows Recovery Environment (Windows RE) configuration:

      REAGENTC.exe /info [/target dir_name] [/logpath file_path]

   Set the location of the custom Windows Recovery Environment (Windows RE) image:

      REAGENTC.exe /setreimage /path dir_path_to_win_RE_image [/target dir_path_to_offline_image] [/logpath file_path]

   Enable any active WindowsRE image that is mapped to the online image:

      REAGENTC.exe /enable [/auditmode] [/osguid bcd_guid] [/logpath file_path]

   Disable any active WindowsRE image that is mapped to the online image:
      (Windows RE can help resolve startup problems; disabling it is not recommended.)
      This command can only be used from the running operating system.

      REAGENTC.exe /disable [/logpath file_path]

   Specify that Windows RE start automatically the next time the system starts:
      This command can only be used from the running operating system.

      REAGENTC.exe /boottore [/logpath file_path]

   Add an entry to the Reset and Restore page in the boot menu:

      REAGENTC.exe /setbootshelllink /configfile xml_name[/target dir_name] [/logpath file_path]

Key:

  /auditmode  [Windows 11], by default Windows will not perform any actions when Windows is in audit mode.
              To over-ride this default and enable WindowsRE from audit mode specify /auditmode
              e.g. /enable /auditmode
              If you generalise the image after using /enable in audit mode WindowsRE is disabled
              until you use enable again or until after the specialize configuration pass runs.

  /configfile xml_name Specifies the path to the XML configuration file for the boot menu entry.

  /logpath file_path   The path of log file.
              If this argument is not specified, the default path is Windows\Logs\Reagent\Reagent.log.

  /osguid bcd_guid  Specifies the Boot Configuration Data (BCD) identifier of the target
              Windows installation. The identifier can be determined by running "bcdedit -enum -v".

  /path dir_path_to_win_RE_image     The directory that contains the custom Windows RE image (winre.wim).

  /target dir_path_to_offline_image  The Windows installation.
              If this argument is not specified, the running operating system is used.

Some additional Windows 11 specific options are available here.

Examples

REAGENTC.EXE /info

REAGENTC.EXE /info /target C:\Windows /logpath C:\Temp\Reagent.log

REAGENTC.EXE /setbootshelllink /configfile d:\linkdesc.xml /logpath C:\Temp\Reagent.log

REAGENTC.EXE /setbootshelllink /configfile d:\linkdesc.xml /target C:\Windows

REAGENTC.EXE /setreimage /path r:\Recovery\WindowsRE /logpath C:\Temp\Reagent.log

REAGENTC.EXE /setreimage /path r:\Recovery\WindowsRE /target C:\Windows

REAGENTC.EXE /enable /logpath C:\Temp\Reagent.log

REAGENTC.EXE /enable /osguid {00000000-0000-0000-0000-000000000000}

REAGENTC.EXE /disable /logpath C:\Temp\Reagent.log

REAGENTC.EXE /boottore /logpath C:\Temp\Reagent.log

“You need to have a Why, Having a “Why” whatever it is, becomes food. It makes your dreams become more urgent” ~ George Schiaffino

Related commands

KB5028997 - Manually resize a partition to install the WinRE update.
DISKPART - Disk Administration.


 
Copyright © 1999-2024 SS64.com
Some rights reserved