Remove-VBRBackup with -Confim option is not executed autom-y

PowerShell script exchange

Remove-VBRBackup with -Confim option is not executed autom-y

Veeam Logoby Zholaman » Thu Nov 12, 2015 11:25 am

Hi,
Please help!

I have tried Remove-VBRBackup with and without -Confim option, but the command execution stopping every time with issue "Are you sure you want to perform this action ?"), so let me ask how I can execute Remove-VBRBackup without any confirmation ?
Zholaman
Novice
 
Posts: 3
Liked: never
Joined: Mon Nov 09, 2015 5:01 am
Full Name: Zholaman Kubaliyev

Re: Remove-VBRBackup with -Confim option is not executed aut

Veeam Logoby v.Eremin » Thu Nov 12, 2015 11:32 am 1 person likes this post

Try -Confirm:$False and see whether it helps.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Remove-VBRBackup with -Confim option is not executed aut

Veeam Logoby Zholaman » Thu Nov 12, 2015 11:43 am

v.Eremin wrote:Try -Confirm:$False and see whether it helps.


Yes, it helps!

Thanks you a lot!
Zholaman
Novice
 
Posts: 3
Liked: never
Joined: Mon Nov 09, 2015 5:01 am
Full Name: Zholaman Kubaliyev

Re: Remove-VBRBackup with -Confim option is not executed aut

Veeam Logoby v.Eremin » Thu Nov 12, 2015 12:33 pm

You're welcome. Generally speaking, the -confirm parameter prompts you for confirmation before executing the command. In order to suppress those notifications you should set $False after it. Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests