PowerShell script exchange
Post Reply
Zholaman
Novice
Posts: 3
Liked: never
Joined: Nov 09, 2015 5:01 am
Full Name: Zholaman Kubaliyev
Contact:

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

Post by Zholaman »

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 ?
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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

Post by veremin » 1 person likes this post

Try -Confirm:$False and see whether it helps.
Zholaman
Novice
Posts: 3
Liked: never
Joined: Nov 09, 2015 5:01 am
Full Name: Zholaman Kubaliyev
Contact:

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

Post by Zholaman »

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

Thanks you a lot!
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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

Post by veremin »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests