Using the XenDesktop® SDK
As mentioned, the XenDesktop SDK contains PowerShell snap-ins for XenDesktop that are installed automatically when the controller or Studio are installed.
To run a XenDesktop cmdlet, perform the following steps:
Log in to the controller with an administrator account.
There are two ways to launch PowerShell, as follows:
From the Windows start menu, navigate to Start | PowerShell
From Citrix Studio, navigate to PowerShell | Launch PowerShell
In the
PS c:\>
prompt, typeSet-ExecutionPolicy Unrestricted
andAnswer "Y" to the prompt
.Load individual PowerShell snap-ins; for example,
Add-PSSnapin Citrix.AdIdentity.Admin.V2
.Load all Citrix PowerShell snap-ins using the
Add-PSSnapin
alias,asnp Citrix.*
, as shown in the following screenshot:
Note
The SDK snap-ins are located on the Delivery Controller in the \%Program Files%\Citrix
directory.