大家都知道,我们可以很方便的通过前台Receiver的注册表以及客户端组策略的方式来控制发布应用以及桌面的快捷方式是否放到开始菜单以及桌面上。
| 
 1 
2 
3 
4 
5 
 | 
 Windows Registry Editor Version 5.00 
[HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\Dazzle] 
“PutShortcutsOnDesktop”=“” 
“PutShortcutsInStartMenu”=“” 
 | 
设置相应的值为True/False即可实现开关。
同样,我们也很容易在前台的组策略模板中找到相应的设置。相关路径如下:
| 
 1 
2 
 | 
 #需要先导入ADM或者ADMX策略模板 
Computer Configuration \ Administrative Templates \ Citrix Components \ Citrix Receiver \ SelfService \ Manage App shortcut 
 | 
通过前台虽然简单,但是如果终端数量较多,或者又无法控制组策略的情况下(例如:BYOD的终端不受管理员控制),通过后台来统一设置可能是更合理的方式。
而StoreFront提供了类似的功能,我们可以修改roadming\account的配置文件来实现,如下:
相关路径为:inetpub\wwwroot\Citrix\Roaming\web.config
我们需要在对应Store(在多个Store的情况下)节下的annotatedServices下的Properties中增加高亮的两行(15-16行)控制shortcuts的property即可
| 
 1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
 | 
         <account id=“a8a0d47b-b443-4e3f-be39-6f5e359aa70c” name=“MorganStanley” 
          description=“” published=“true” updaterType=“Citrix” remoteAccessType=“StoresOnly”> 
          <annotatedServices> 
            <clear /> 
            <annotatedServiceRecord serviceRef=“1__Citrix_MorganStanley”> 
              <metadata> 
                <plugins> 
                  <clear /> 
                </plugins> 
                <trustSettings> 
                  <clear /> 
                </trustSettings> 
                <properties> 
                  <clear /> 
                  <property name=“PutShortcutsInStartMenu” value=“false” /> 
                  <property name=“PutShortcutsOnDesktop” value=“false” /> 
                </properties> 
              </metadata> 
            </annotatedServiceRecord> 
          </annotatedServices> 
 | 
注意:目前Storefront中web.config中这两个新增属性的value值true/false必须小写,Name部分大小写不敏感
另外,在XenApp/XenDesktop Controller发布应用的属性中,我们也可以设置是否添加快捷方式到客户端的桌面或者开始菜单,所以相关的设置可以通过下面的命令查看和修改
| 
 1 
2 
3 
4 
5 
6 
7 
 | 
 #check below properties 
# – ShortcutAddedToDesktop 
# – ShortcutAddedToStartMenu 
Get-BrokerApplication -Name <published_app_name> 
#update 
Set-BrokerApplication -Name <published_app_name> -ShortcutAddedToDesktop $false -ShortcutAddedToStartMenu $false 
 | 
相关截图参考如下:

相关设置可能会有优先级:
- 客户端本地的设置优先级最高
 - StoreFront和Controller发布设置中,True的设置优先级较高。也就是说,不管哪一方设置为True,那么最终结果都为True
 - StoreFront和Controller发布设置中,全部设置为false,并且客户端为默认情况的时候,结果为False
 
	声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
		


评论(15)
Your post includes useful information and thought-provoking ideas. Thanks for sharing your knowledge and expertise.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
zxus77
4b5bh3
zhk5t3
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
sp47lo
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
sfjvz8
erxs9r
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://www.binance.info/vi/register-person?ref=WTOZ531Y
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
whctt6
15bxe1
p8q7fm