I have created script for deleting old backups with
wbadmin delete backup -keepVersions:10
and scheduled task to run with task scheduler. But this task scheduler is not working as this command prompts for Yes or no. How can i skip that?
1 Answer
According to this Article, you just need to add -quiet
to your command.
wbadmin delete backup -keepVersions:10 -quiet
-quiet: Runs the subcommand with no prompts to the user.
-
I just saw that this documentation is about
wbadmin start
, not aboutwbadmin delete
. Please still try it, it might work.– SimonSFeb 4, 2019 at 8:25 -
wdadmin delete
also has-quiet
flag. You just need to change the link in your answer to this one : docs.microsoft.com/en-us/windows-server/administration/…– lx07Feb 4, 2019 at 9:22 -
@Nuhus great! Can you accept this answer by clicking the check mark icon next to the answer? Then others will know this question has been solved– SimonSFeb 5, 2019 at 12:06