I am trying to do something very similar ... my problems are elsewhere though
As for your original query, do you have more than one partition already on the HDD?
If you do, the bdehdcfg.exe -target default is likely to fail.
I would suggest something like ...
bdehdcfg.exe -target c: shrink -newdriveletter x: -size 300 -quiet
I would avoid a -restart on that, and add a restart step into your task sequence.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.