PowerShell script exchange
Post Reply
nicbor
Certified Trainer
Posts: 11
Liked: 4 times
Joined: Nov 04, 2013 7:52 am
Full Name: Niclas Borgström
Location: Sweden
Contact:

Remove-VBRViProxy force remove?

Post by nicbor »

Maybe I'm missing something but I can't delete a Proxy server without manually having to answer a pop-up question whether I'm sure or not.
Is there any way of a forcing the Proxy server to be removed?
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Remove-VBRViProxy force remove?

Post by veremin »

Try to set $False value to -Confirm switch:

Code: Select all

$Proxy = Get-VBRViProxy -Name "Name of your proxy"
Remove-VBRViProxy -Proxy $Proxy -Confirm:$false
Thanks.
nicbor
Certified Trainer
Posts: 11
Liked: 4 times
Joined: Nov 04, 2013 7:52 am
Full Name: Niclas Borgström
Location: Sweden
Contact:

Re: Remove-VBRViProxy force remove?

Post by nicbor » 1 person likes this post

Worked like a charm!

Thanks!
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Remove-VBRViProxy force remove?

Post by veremin »

You're welcome. Should other help be needed, don't hesitate to let us know. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests