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
Running into this same issues, did you ever figure out a resolution?
Not yet.. Are you getting similar error?
Yes, getting the same error as well.
Have you got a fix for this error
Regards,
Sajith
mapentry was always a pita so I never used it. I would recommend using the rest api, way easier.