When the "Prepare for Image Capture" task runs we get the following error :
Release : 8.6
Known issue.
The error message is misleading and doesn't relate to an automation folder being installed. The error masks the true failure which is with Sysprep.
Our development team is aware of the misleading error and is working on having this return the true error.
Since Sysprep is the cause of the error, check Sysprep logs in the following location on the endpoint:
C:\windows\system32\sysprep\panther
The logs there should shed light on why Sysprep failed. There are many reasons why Sysprep can fail but it is important to prepare the machine for Sysprep before running a "Prepare for image capture" job.
Please refer to the following article for preparation steps for Windows 10/11:
Preparing Windows 10 to run a 'Prepare for Image Capture' (sysprep) task using Deployment Solution 8.x