XenApp and XenDesktop

软件开发工具包和应用程序编程接口

此版本提供了多个 SDK 和 API。有关详细信息,请参阅开发人员文档。您可以在其中访问以下编程信息:

  • 交付控制器™
  • 监视服务 OData
  • 店面™

Citrix Group Policy SDK 允许您显示和配置组策略设置和筛选器。它使用 PowerShell 提供程序创建与计算机和用户设置及筛选器对应的虚拟驱动器。该提供程序显示为 New-PSDrive 的扩展。要使用 Group Policy SDK,必须安装 Studio 或 XenApp and XenDesktop SDK。有关详细信息,请参阅组策略 SDK

交付控制器 SDK

SDK 包含多个 PowerShell 管理单元,这些管理单元在您安装 Delivery Controller 或 Studio 组件时由安装向导自动安装。

权限:您必须使用具有 Citrix® 管理权限的身份运行 Shell 或脚本。尽管 Controller 上本地管理员组的成员自动拥有完全管理权限以允许安装 XenApp 或 XenDesktop®,但 Citrix 建议在正常操作中,您创建具有适当权限的 Citrix 管理员,而不是使用本地管理员帐户。如果您运行的是 Windows Server 2008 R2,则必须以 Citrix 管理员身份运行 Shell 或脚本,而不是作为本地管理员组的成员运行。

要访问和运行 cmdlet:

  1. Start a shell in PowerShell: Open Studio, select the PowerShell tab, and then click Launch PowerShell.
  2. 要在脚本中使用 SDK cmdlet,请在 PowerShell 中设置执行策略。有关 PowerShell 执行策略的详细信息,请参阅 Microsoft 文档。
  3. Add the snap-ins you require into the PowerShell environment using the Add -PSSnapin cmdlet in the Windows PowerShell console.

V1 and V2 denote the version of the snap-in (XenDesktop 5 snap-ins are version 1; XenDesktop 7 snap-ins are version 2. For example, to install XenDesktop 7 snap-ins, type Add-PSSnapin Citrix.ADIdentity.Admin.V2). To import all the cmdlets, type: Add-PSSnapin Citrix.*.Admin.V*

添加管理单元后,您可以访问 cmdlet 及其关联的帮助。

NOTE: To see the current XenApp® and XenDesktop PowerShell cmdlet help:

  1. From the PowerShell console, add the Citrix snap-ins: Add –PSSnapin Citrix.*.Admin.V*.
  2. 请按照 PowerShell 集成脚本环境 (ISE) 中的说明进行操作。

组策略 SDK

要使用组策略软件开发工具包,必须安装 Studio 或 XenApp 和 XenDesktop 软件开发工具包。

To add the Group Policy SDK, type Add-PSSnapin citrix.common.grouppolicy. (To access help, type: help New-PSDrive -path localgpo:/)

To create a virtual drive and load it with settings, type: New-PSDrive <Standard Parameters> [-PSProvider] CitrixGroupPolicy -Controller <string> where the Controller string is the fully qualified domain name of a Controller in the Site you want to connect to and load settings from.

软件开发工具包和应用程序编程接口