Run image backup in hyper-v

I followed the commands in this post:

It comes up with a bunch of errors while booting, but eventually it boots up. Is there a way to automatically do this instead of a live cd?