VMware Horizon Community
Sajith-P
Contributor
Contributor

Updating Connection Server General settings

 

Hi Team,

I'm trying to set the value of disable blast secure gateway to False using PowerCLI . The code i'm trying to use is below

$ViewAPI = $global:DefaultHVServers.ExtensionData
$List = $ViewAPI.ConnectionServer.ConnectionServer_List().Id
$Update = new-object VMware.Hv.MapEntry
$update.key = "General.BypassTunnel"
$update.value = $False
$ViewAPI.ConnectionServer.ConnectionServer_Update($List,$update)

But when i try updating the BypassTunnel value, getting below error

$ViewAPI.ConnectionServer.ConnectionServer_Update($List,$update)
MethodInvocationException: Exception calling "ConnectionServer_Update" with "2" argument(s): "ExceptionType : VMware.Hv.InvalidArgument
ErrorMessage : Invalid member name.
ParameterName : BypassTunnel"

Any help to fix this error is highly appreciated

Regards,
Sajith

0 Kudos
5 Replies
EsXy
Contributor
Contributor

Running into this same issues, did you ever figure out a resolution?

0 Kudos
Sajith-P
Contributor
Contributor

Not yet.. Are you getting similar error?

0 Kudos
EsXy
Contributor
Contributor

Yes, getting the same error as well.

0 Kudos
Sajith-P
Contributor
Contributor

Have you got a fix for this error

Regards,

Sajith

0 Kudos
RetouwNL
Enthusiast
Enthusiast

mapentry was always a pita so I never used it. I would recommend using the rest api, way easier.

RetouwNL_0-1698394770024.png

 



Previously known as Magneet or Magneet_NL, does things with Horizon api's, see www.retouw.nl
0 Kudos