Set VPN Group Name for connetions using PowerShell

Set VPN Group Name for connetions using PowerShell

avatar

I would like to set the VPN Group name for all of my connections using variables $DOMAIN_DOMAIN$ $SITE_NAME$

I cannot figure out how to set variables under the connection VPN/SSH/Gateway settings

Can anyone provide the powershell command to assign data to the VPN group variable

Thank you

All Comments (2)

avatar

Hi,
I have assigned your request to Erica. She will look at it and see if can help you with PowerShell script.

Regards

David Hervieux

avatar

Hello,

The property to set the VPN Group Name is VPN.VPNGroupName.

Here is an example of setting this property for a session :

$sess = Get-RDMSession | where {$_.Name -eq "Server1"}
$sess.VPN.VPNGroupName = "`$DOMAIN_DOMAIN$"
Set-RDMSession $sess -refresh
Best regards,

Érica Poirier