Automation

 View Only
  • 1.  Set-hvpool does not change any setting

    Posted May 31, 2023 02:44 PM

    Hi,

    I want to make a simple change to existing pools. just allow user to change protocol and default protocol to be PCoIP.

    $pool = Get-HVPool -PoolName Targetpool
    set-hvpool -pool $pool -key 'desktopSettings.displayProtocolSettings.allowUsersToChooseProtocol' -value $true
    set-hvpool -pool $pool -key 'desktopSettings.displayProtocolSettings.defaultDisplayProtocol' -value "BLAST"

    I see the running result of

    Updating the Pool: Targetpool
    Updating the Pool: Targetpool

    But it's actually nothing has been changed.

    I ran it from admin escalated PS ISE.

    Any advise is welcome.

    Thank you,

     



  • 2.  RE: Set-hvpool does not change any setting

    Posted May 31, 2023 05:38 PM

    How did you check nothing was changed?
    Did you do a Get-HVPool?



  • 3.  RE: Set-hvpool does not change any setting

    Posted Jun 01, 2023 12:56 AM

    From GUI. Actually fromCUI, it is changed!

    Why GUI not reflected,,,?

     

    Thank you,

     

    $pool = get-hvpool -name Targetpool


    PS C:\Windows\system32> $pool.DesktopSettings.DisplayProtocolSettings


    SupportedDisplayProtocols : {BLAST, PCOIP, RDP}
    DefaultDisplayProtocol : BLAST
    AllowUsersToChooseProtocol : True
    PcoipDisplaySettings : VMware.Hv.DesktopPCoIPDisplaySettings
    EnableHTMLAccess : True
    EnableCollaboration : False

     

    Thank you,

     



  • 4.  RE: Set-hvpool does not change any setting

    Posted Jun 01, 2023 06:57 AM

    No idea.
    There might be a delay or perhaps needs a restart.