Set VPN Settings in Groups with Powershell

Set VPN Settings in Groups with Powershell

avatar
[DELETED]
Disabled

Hi,
we´d like to add VPN Config per Group with Powershell, e.g. set the "Open" Value in VPN/SSH/Gateway to "Connect if unable to ping", set the VPN group, the Credentials and the "Login windows Title" in VPN/SSH/Gateway - Settings - Login. Can this values accessed with powershell? And is there somd documentation about this?
best regards
Sebastian

All Comments (5)

avatar

Hi,
i just found (get-rdmsession -Name $cstm).VPN.Mode and VPNGroupName, but not sthe values set under "Login windows Title" in VPN/SSH/Gateway - Settings - Login...
Greetings

avatar

Hello,

What VPN type are you using?

A method to find object properties to use them in PowerShell is to right-click on the entry and go in Clipboard - Copy - Preview. You should be able to find the property you are looking for if it has been properly set on the entry.

forum image

forum image

Best regards,

Érica Poirier

avatar
What VPN type are you using?


Hello,
thank you for your quick reply. We use a Sophos VPN:

<Connection>
    <ConnectionType>Credential</ConnectionType>
    <CreatedBy>USERNAME</CreatedBy>
    <CreationDateTime>2020-09-14T10:11:00</CreationDateTime>
    <Group>GROUP</Group>
    <ID>12345678-7984-4cea-b777-3c603d01106c</ID>
    <Name>Sophos VPN</Name>
    <Stamp>12345678-1234-1234-b5ac-478750e371a5</Stamp>
    <UpdateDateTime>2020-09-14T10:11:34</UpdateDateTime>
    <Credentials>
      <CredentialType>PleasantPasswordServer</CredentialType>
      <HostCredentialSource>MyAccountSettings</HostCredentialSource>
      <HostSource>MyAccountSettings</HostSource>
    <PleasantPasswordServerCredentialID>12345678-1234-1234-1234-123456789123</PleasantPasswordServerCredentialID>
      <PleasantPasswordServerCredentialName>Sophos VPN</PleasantPasswordServerCredentialName>
    </Credentials>
  </Connection>



I am searching this value, i did´t find it in the Clipboard Preview:
forum image

best regards
Sebastian

avatar

Hello,

Thank you for the information.

It seems that the Login window title is located in the .VPN.AddOn property but the information is encrypted.
forum image

I will verify with the engineering team and will keep you posted.

Best regards,

Érica Poirier

avatar

Hello Érica,
I feared that. ;) Then we have to set it up by hand ..
Nevertheless many thanks!
Bst rgds
Sebastian