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?