Sample Exchange

 View Only

Enable or Disable Horizon Desktop or Application Pool 

Aug 13, 2021 12:06 AM

Provides command line option to update the application or desktop pool status as enabled or disabled.

When to Use: To restrict end user connections to application/desktop pools by disabling it and leaving user entitlements as it is.

Note: Global Entitlement would still get listed to end users. When there is not resource found in connection server because of disabled status, it returns appropriate error to end users.

Instructions:

  • Copy the HorizonUtils.zip to Connection Server Machine
  • Extract it to desired location
  • Open cmd prompt as administrator
  • CD to HorizonUtils directory where HorizonPool.cmd file is present
  • Execute the command -help to usage information

c:\test\HorizonUtils>HorizonPool.cmd -help

Usage:

    HorizonPool -PoolName "NotePadPlusPlus" -enable

    HorizonPool -PoolName "Windows10" -disable

Note: This command line utility requires an elevated privilege to run it. It works only from within Horizon Connection Server machine. Do not recommend it running from outside the Connection Server machine by modifying the script server address.

Horizon 8.1 or later has application pool disable or enable functionality in Horizon console. There is no need of this external script.

c:\test\HorizonUtils>HorizonPool.cmd -help
Usage:
    HorizonPool -PoolName "NotePadPlusPlus" -enable
    HorizonPool -PoolName "Windows10" -disable

#MIT
#PowerShell
#Horizon
#Horizon8
#DisableApplicationPool
#Horizon7
#DisableDesktopPool
#EnableApplicationPool
#EnableDesktopPool

Statistics
0 Favorited
2 Views
1 Files
0 Shares
1 Downloads
Attachment(s)
zip file
Enable-or-Disable-Horizon-Desktop-or-Application-Pool-master.zip   2 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.