HV Backup in Batchfile returns 0x2 when running as a scheduled task

May 27, 2014 at 11:38 AM
Hi everbody,

I like to backup my Hyper-V machines with HV Backup. Therefore I've created a simple batchfile that maps my shared backup folder and then HVbackup should backup my VMs in that backup folder.

net use z: \wsrv\backup /user:domain\administrator password
HVBackup.exe -l server1,server2,server3 -o Z:\BACKUP\

In order to have regular backups I've created a scheduled task that runs the batch file. Whenever I launch the task I'll get the error code "0x2". When I run the batch file by double clicking it, everything runs fine.

Can anybody help please.