How can I resolve the error: "Could not find the recovery environment" when attempting to reset a computer prior to Autopilot

Ben I 1 Reputation point
2024-01-24T00:28:34.5666667+00:00

I'm attempting to autopilot image all the computers in our company. However a good many of the test computers have displayed the error "Could not find the recovery environment" when I attempt to reset the computer before the initial Autopilot imaging. The computers are remote. I've attempted to enable the recovery environment programmatically. I created a boot.wim file using ADK and extracting one from an ISO, however neither method worked.

Using ADK: (I don't know why my code won't display with line breaks. If y'all could help with that too, i'd appreciate it) copype amd64 C:\WinPE ||| dism /Mount-Image /ImageFile:C:\WinPE\media\sources\boot.wim /index:1 /MountDir:C:\WinPE \mount ||| dism /image:C:\WinPE\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs" ||| dism /Unmount-Image /MountDir:C:\WinPE\mount /commit |||

I then copied the ISO to the folder c:\temp\ and ran the following: reagentc /setreimage /path C:\temp\boot.wim

Every boot.wim I ran that against returned the message: REAGENTC.EXE: No valid image found in the specified path.

I never got to this point: reagentc /enable

I even tried setting the recovery folder in the registry, but it still didn't take my boot.wim. Am I using the wrong boot.wim, or am I configuring the recovery environment incorrectly?

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-01-25T06:33:58.6+00:00

    Hi Ben,

    Thanks for your post. This might be a known issue when autopilot. “When you attempt an Autopilot reset, you see the following message: Autopilot reset ran into trouble. Could not find the recovery environment. If there isn't an issue with the recovery environment, enter administrator credentials to continue with the reset process.”

    Reference: DefaultuserX profile not deleted https://learn.microsoft.com/en-us/autopilot/known-issues#autopilot-reset-ran-into-trouble-could-not-find-the-recovery-environment

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.