Yesterday I run into a computer refresh failing with SCCM 2012 and MDT 2012 RC1. While the issue is still being investigated, here are the steps I did to troubleshoot, and the temporary workaround I configured for the issue.
Update! This is fixed in the RTM version of MDT 2012. I left the article here as a resource for MDT 2012 troubleshooting techniques.
The error I got was "The parameter is incorrect. (Error: 80070057; Source: Windows)" (see the following screenshot).
When I opened the smsts.log file I found the following (I cleaned up the log a little bit):
Set command line: "OSDApplyOS.exe" /image:PS100007,1 "/config:PS10000B,unattend.xml" /target:%OSDisk%
The /target parameter specifies an invalid target location.
Failed to run the action: Apply Operating System Image.
The parameter is incorrect. (Error: 80070057; Source: Windows)
The log file info led me to believe that the OSDisk value was never set (it's supposed to be set by ZTIGather.wsf). This is the default Apply OS action, where you can see that the target partition/volume, is the OSDisk property.
To workaround my issue I simply set the OSDisk value to in my case, C:, but for Refresh only, since bare metal deployment worked just fine with the default settings.
Note: you might be tempted to just configure the apply OS action to deploy the image to disk 0 partition 1, and that will also make the computer refresh to work… but will cause your bare metal deployments to fail, since the default sequence creates two partitions when deploying Windows 7.