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'
search cancel

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 creating a Windows 11 ENT x64 image, the "Prepare for Image Capture" task returns 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'

 

Environment

DS 8.6

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.

 

Resolution

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