I made a script to backup VMs on CSVs which works great except that I cannot get disk2vhd.exe to run. The script is run from a server with windows 2008 installed. Since a lot of our VMs use Windows 2003 (w/o PS), I have to do everything the complicate way.
First thing I tried was to just create a batch file and execute it with WMI. The batch file is indeed executed, but somehow, disk2vhd is not started.
By the way, the command I use to start disk2vhd works perfectly fine when I copy it into the cmd console on the VM directly!
I then also tried to use psexec and only passed this certain command (cmd /c $command). Again nothing.
Could this perhaps be a problem with UAC or permissions?