Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Connection Server General settings #614

Open
Sajkrish opened this issue Jul 1, 2023 · 1 comment
Open

Updating Connection Server General settings #614

Sajkrish opened this issue Jul 1, 2023 · 1 comment
Labels

Comments

@Sajkrish
Copy link

Sajkrish commented Jul 1, 2023

Describe the bug

I am trying to update the Horizon Connection server general settings with PowerCLI as these appear to be exposed in the REST API unfortunately. The settings I need to change are

BypassTunnel
BypassPCOIPGateway
BypassAppBlastGateway

I'm using the below method to update these values however getting below error

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

MethodInvocationException: Exception calling "ConnectionServer_Update" with "2" argument(s): "ExceptionType : VMware.Hv.InvalidArgument
ErrorMessage : Invalid member name.
ParameterName : BypassPCoIPGateway"

Reproduction steps

Login to Connection server and execute the commands

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

Expected behavior

Expecting the values to be either set to True or false

BypassTunnel
BypassPCOIPGateway
BypassAppBlastGateway

Additional context

No response

@Sajkrish Sajkrish added the bug label Jul 1, 2023
@Mr-Kappelmann
Copy link

possible: same problem in #607

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants