Problems/Symptoms:
When executing a provisioning template, the template fails on the imaging action. This occurs in Windows PE when running imagew.exe. The error is 68. The full error is -2147477501. This is the error seen in Windows PE:
The ldprovision.log file (X:\ldprovision\ldprovision.log in WinPE) will show this error:
2008-02-15 21:32:19(692-696) ldProvision:Launching action handler http://DeployImageHandler.exe with parameters
2008-02-15 21:32:26(1500-1988) DeployImageHandler.exe:execute failed with 68
This is the error in the provisioning history in the console for the target device:
Cause:
The disk driver has not been fully loaded and/or the hard drive is still locked when the imaging command is run.
Fix:
Add a wait action before the imaging action. Start with 30 seconds. If that is not enough to fix the problem, gradually increase the wait time until the issue is resolved.