Hello experts. I'm looking to write a script to shut down running VM's (with verification preferably - return code or something), make a copy of the VHD file (in the same folder), restart the VM's, then copy the VHD files over to some NAS storage. I'm comfortable with everything (using regular DOS batch files) but the scripted shutdown and startup of the VM's. I don't know any PowerShell or VB or anything like that, so if something like that would be needed, I would need to have it called by my batch process and have it return a pass/fail somehow (for both shutdown then startup)...or have the whole thing written in PowerShell or VB or whatever.
The environment is Windows Server 2008 R2 with Hyper-V. If it matters, one VM is also 2008 R2 and the other is Windows Server 2003 R2.
Thanks for your help!