Overview
During provisioning while deploying or capturing you may get the following error. Most commonly this error occurs when deploying an image but can occasionally occur during capture as well.
Cause
As the error indicates ImageW is unable to lock the C drive because the volume is in use by an application or by the OS.
Solution / Workaround
You can overcome this issue by forcing the dismount of the volume. You will need to add an additional command to the command line parameters in your deploy or capture image action within your template. The switch is /fd. The /fd needs to be placed after the /rb:0 switch. Below is an example.
*** Important ****
Do not use the validate button after making the changes. The validate button resets the command line back to default and will remove the /fd switch.
More information
More information about the fd switch is found below.
(/fd Use this option to force dismounting a volume (partition) that can't be locked for backup when PHYLock or VSS is not used. Using this option will invalidate all opened handles to the volume, which may result in lost data. Image for Windows will attempt to lock the volume after forcing the dismount.)
ImageW manual.
http://www.terabyteunlimited.com/downloads/ifw_en_manual.pdf