search cancel

Create a Windows 11 ENT x64 image fails with error: ExecuteClassException occured 'AutoUtil.exe location not found in registry', return code 0, system error 'The system cannot find the file specified (0x00000002)', location 'ExecuteCommand.cpp786'

book

Article ID: 240754

calendar_today

Updated On:

Products

Deployment Solution

Issue/Introduction

When the "Prepare for Image Capture" task runs we get the following error :

  • ErrorMessage: ExecuteClassException occured 'AutoUtil.exe location not found in registry', return code 0, system error 'The system cannot find the file specified (0x00000002)', location 'ExecuteCommand.cpp786'

 

Cause

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.

 

Environment

Release : 8.6

Resolution

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