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

Reply
0 Kudos