How to get vssadmin delete shadows /all to run in a batch file
Running Small Business Server 2008 on a HP ML350 G5 server.
The 3rd party backup fails often with the error: “Failed to Create Volume Snapshot. Result code : 0x0042313”
I have found if I execute the command:
vssadmin delete shadows /all
This command will fix the problem.
Question: I'd like to run this as a batch file. The batch file will execute the vssadmin delete shadows /all
command. The vssadmin command asks a question when it executes. In my batch file I placed the letter Y under the command to run vssadmin . It seems vssadmin does not see the Y so it just sits there waiting for something to enter the letter Y.
I am not a script expert. What script would you suggest I write so the vssadmin delete shadows /all will see the letter Y and run to completion?