• View Communities
    • Citrix Developer Network
      The place for unfiltered straight talk on Citrix products. Blogs, code downloads, best practices, APIs, and more can all be found here.
    • Citrix Ready Community Verified
      Does it work with Citrix? Application compatibility questions are a thing of the past with the new Citrix Community Verified site.
    • Blogs
      Learn the latest from the Citrix employees who are building application delivery infrastructure technologies.
    • Blogosphere
      The Citrix Blogosphere is a window into the thousands of conversations taking place about Citrix and Application Delivery.
  •  Sign In
XenDesktop Developer Network

Download SDKS

Introduction to the Citrix Desktop Delivery Controller SDK

The Citrix Desktop Delivery Controller PowerShell SDK provides a snap-in, XDCommands, for the Microsoft PowerShell v1.0 framework. The SDK consists of a number of "cmdlets" that allow you to script many of the administrative tasks you may need to perform on a regular basis.

Using the Citrix Desktop Delivery Controller SDK

Installing the SDK registers the XdCommands snap-in assembly with the Microsoft PowerShell framework. The snap-in makes a number of new classes and "cmdlets" available to PowerShell scripts or interactive shell sessions.

Important: To run scripts you may need to use the built-in "Set-ExecutionPolicy" cmdlet to adjust the PowerShell execution policy to a value such as "RemoteSigned". On a 64 bit platform, you must set the execution policy for the 32 bit PowerShell environment rather than the execution policy for the 64 bit PowerShell environment, so use the "Windows PowerShell(32)" shell instance to set the policy.

Loading the XdCommands Snap-in

To use the snap-in in a script or interactive PowerShell shell session, load the snap-in into the PowerShell host process. To do this, run the built-in "Add-PSSnapin" cmdlet, as follows:

Add-PSSnapin 'XdCommands'

Alternatively, use the installed PowerShell console file, XdCommands.psc1, to start an interactive PowerShell shell session with the XdCommands snap-in pre-loaded. Citrix provides a shortcut on the Start menu to start such a session. This shortcut also runs the "XdAliases.ps1" PowerShell script that sets up aliases for most of the SDK cmdlets. This shortcut will not function properly until the PowerShell execution policy, as described above, is set appropriately.

Download SDK


Getting Help

Online help is available for all Desktop Delivery Controller SDK cmdlets. To obtain a list of cmdlets offered by the snap-in, run the built-in "Get-Command" cmdlet, as follows:

Get-Command -psSnapin XdCommands

Online help for individual cmdlets is available using the built-in "Get-Help" cmdlet. For example, to view the online help for the "Get-XdDesktopGroup" cmdlet, run the following command:

Get-Help Get-XdDesktopGroup

For an overview of all cmdlets provided by the SDK, view the "about_XdCommands" help topic. To view this information, run the the following command:

Get-Help about_XdCommands

Tags

xendesktop sdks xendesktop sdks Delete
Enter tags to add to this page:
Please wait 
Looking for a tag? Just start typing.

Anonymous says:

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account. You can also Sign Up for a new account.

Related Links