Flashing Nexus 7 factory image fails on writing userdata
This can be resolved by manually performing the actions specified in the flash-all.bat file. I had the exact same problem and this stack exchange page got me sorted.
Flashing Nexus 5 factory image fails on writing userdata