VMware Cloud Community
AlexP012
Contributor
Contributor
Jump to solution

Change Horizon desktop pool display name using HV.Helper

Hi

I want to be able to update the display name on a Horizon Instant Clone desktop pool via script.

I've tried using the Vmware.Hv.Helper module and using the following code

Import-Module VMware.Hv.Helper

Connect-HVServer -server Horizon1 -domain 'domain.local'

set-hvpool -pool 'Pool1' -key 'base.displayName' -value 'Change The Display Name'

I get the error

set-hvpool : In pipeline did not get object of expected type DesktopSummaryView/DesktopInfo

At line:1 char:1

+ set-hvpool -pool 'Pool1' -key 'base.displayName' -value 'Change The Display Name ...

    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException

    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Set-HVPool

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Is it possible to change the display name using set-hvpool and if it is does anyone know the key. I've read that the keys are case sensitive

Cheers

Alex

0 Kudos
1 Solution

Accepted Solutions
AlexP012
Contributor
Contributor
Jump to solution

It is all about the case sensitivity. The eventually worked

Set-HVPool -PoolName 'Pool1' -Key 'base.displayName' -Value 'Change The Display Name'

View solution in original post

0 Kudos
1 Reply
AlexP012
Contributor
Contributor
Jump to solution

It is all about the case sensitivity. The eventually worked

Set-HVPool -PoolName 'Pool1' -Key 'base.displayName' -Value 'Change The Display Name'

0 Kudos