PowerShell script exchange
Post Reply
mrholm
Expert
Posts: 170
Liked: 15 times
Joined: Apr 20, 2018 8:12 am
Full Name: Mats Holm
Contact:

Change Proxy Transport Mode to NBDSSL on all Proxies

Post by mrholm »

Hi
We have an environment with around 55 proxies and we need to change the transport settings to use NBDSSL on all proxies, are there anyone that already have a script for this or know a good way of doing it?
mrholm
Expert
Posts: 170
Liked: 15 times
Joined: Apr 20, 2018 8:12 am
Full Name: Mats Holm
Contact:

Re: Change Proxy Transport Mode to NBDSSL on all Proxies

Post by mrholm »

Hi
Had a consultant at site that fixed it 5 minutes, here are the code we use

$servers = Get-VBRViProxy | select name
foreach($server in $servers)
{
Write-host "Processing $($server.name)...
"
Set-VBRViProxy -Proxy $server.name -EnableHostToProxyEncryption
}
nielsengelen
Product Manager
Posts: 5619
Liked: 1177 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Change Proxy Transport Mode to NBDSSL on all Proxies

Post by nielsengelen » 3 people like this post

Thanks for sharing.

For the future, you can always look at SuperEdit which is a community tool to mass change things in jobs via PowerShell.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
tsightler
VP, Product Management
Posts: 6009
Liked: 2843 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Change Proxy Transport Mode to NBDSSL on all Proxies

Post by tsightler » 1 person likes this post

Note that Set-VBRViProxy accepts pipeline input so you can actually do this with a single line:

Code: Select all

Get-VBRViProxy | Set-VBRViProxy -EnableHostToProxyEncryption
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests