Hello,
I have written a small batch script to make a Windows 2012 VM backup to NAS :
net use F: \\NAS-BACKUP-01\FullBackup Password /user:username /p:yes
wbadmin start backup -backuptarget:"F:\SRV-NAV-01\Quotidien" -hyperv:SRV-NAV-01 -quiet -vssCopy >> C:\backuplogs_NAV.txt
net use F: /DELETE
This script work fine when launched directly (using an admin account).
However, I receive an error when this script is started via the Scheduler :
This will back up HyperV\SRV-NAV-01 to F:\SRV-NAV-01\Quotidien.
ERROR - The specified backup location could not be found or is not a supported backup storage location.
Remarks:
- Same result if the script is scheduled using an admin or the System account
- The script is always run with the highest privileges
- Admin and system account are allow to Log on as batch job
- Same result if the target is the network share (instead of F:)
wbadmin start backup -backuptarget:"\NAS-BACKUP-01\FullBackup\SRV-NAV-01\Quotidien" -hyperv:SRV-NAV-01
-quiet -vssCopy >> C:\backuplogs_NAV.txt
Do you have any idea to have this script running via the Scheduler ?
Thanks in advance for your help.