In this recipe we will discuss the utilization of the Active Directory identity cmdlets; this is a capability that permits retrieving and configuring the Active Directory objects used by Citrix XenDesktop, such as machine accounts assigned to existing desktop catalogs.
No preliminary tasks are required. You have already installed the Citrix XenDesktop PowerShell SDK during the installation of Desktop Controller role machine(s).
To be sure of being able to run a PowerShell script (in the
.ps1 format), you have to enable the script execution from the PowerShell prompt by executing the following command:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force