I am running Wbadmin for backup purposes in a batch file, however the batch execution halts, prompting for a password although the password is provided.
First attempt - include password in command:
cmd /c "C:\Windows\system32\wbadmin.exe" start backup -backuptarget:\\acrux\BACKUP02 -include:"c:" -quiet -allcritical -noVerify -user:backupuser password:operbackup
Second attempt - Echo password (with pipe):
cmd /c echo operbackup | "C:\Windows\system32\wbadmin.exe" start backup -backuptarget:\\acrux\BACKUP02 -include:"c:" -quiet -allcritical -noVerify -user:backupuser
The batch file is being fired from Task Scheduler running with maximum privileges within an Administrator-level account. Platform: Windows 7 & 8
The problem was due to passing parameters to a batch file with a maximum of 9! The tenth parameter (password) was ignored, forcing the prompt!!!