I've created a WinPE preboot bundle which I'm deploying to devices. I have one problematic model which receives the error of "Error writing to archive" when it tried to restore an image. After cleaning the disk, re-creating the partition and formatting it via diskpart, the devices takes the image successfuly.

To try and automate this, I've setup my bundle by creating a WinPE Imaging Script, which runs diskpart to prepare the disk, then I have a Zenworks image in the bundle to restore using Zenworks WinPE Imaging.

The problem I'm having is that the imaging script part of the bundle loops and will not end and move onto the next part to restore the image.

Is there any way around this?