Book Image

Citrix XenDesktop Cookbook-Third Edition

By : Gaspare Silvestri
Book Image

Citrix XenDesktop Cookbook-Third Edition

By: Gaspare Silvestri

Overview of this book

Table of Contents (18 chapters)
Citrix XenDesktop Cookbook Third Edition
About the Author
About the Reviewers

Managing Active Directory accounts – ADIdentity cmdlets

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 XenDesktop, such as machine accounts assigned to existing desktop catalogs.

Getting ready

No preliminary tasks are required. You have already installed the PowerShell SDK during the installation of the Desktop Controller role machine(s).

To be able to run a PowerShell script (.ps1 format), you have to enable the script execution from the PowerShell prompt in the following way:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force

How to do it…

The following are the steps required to manage the XenDesktop machine identity using PowerShell:

  1. Connect to one of the Desktop Broker servers, by using a Remote Desktop connection, for instance.

  2. Click on the PowerShell icon installed on the Windows taskbar.

  3. Load the PowerShell modules by typing the following command...