How to modify values of Name and BrowserName under Get-BrokerEntitlementPolicyRule
book
Article ID: CTX322376
calendar_today
Updated On:
Description
To match display or browser name of published desktop being launch to that of published icon view on storefront enumeration page relevant to a delivery group
Instructions
BrokerEntitlementPolicyRule is created for each of published desktop delivery group
To view output run:Get-BrokerEntitlementPolicyRule or Get-BrokerEntitlementPolicyRule | Select Name, BrowserName, PublishedName
To verify property of relevant delivery group:Get-BrokerDesktopGroup -Name " delivery group name"
To rename BrokerEntitlementPolicyRule to that of delivery group:Rename-BrokerEntitlementPolicyRule 'Existing name' -NewName 'New name'
Note: Powershell supports modifying browsername of published application only.
For published desktop follow:
- In SQL Management Studio, expand your site database and then Tables.
- Select the chb_Config.BrowserNames table > right-click > select Top 1000 rows
- Find your BrowserName and make note of the SharedDesktopEntitlementUid.
- In SQL Management Studio, right-click your site database > select New Query There is a drop-down menu in the upper left hand corner. Make sure it has the name of your site database.
- Paste the following code into the query window, update the BrowserName and SharedDesktopEntitlementUid and execute:
update chb_Config.BrowserNames
set BrowserName = 'NewBrowserName'
where SharedDesktopEntitlementUid = 'Numeric value'
- This should only update one row. to verify run Get-BrokerEntitlementPolicyRule
Environment
The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.
Was this article helpful?
thumb_up
Yes
thumb_down
No