How to Change the SID of a Machine in a Non-MCS Dedicated Machine Catalog

How to Change the SID of a Machine in a Non-MCS Dedicated Machine Catalog

book

Article ID: CTX133566

calendar_today

Updated On:

Description

This article describes how to change the Security ID (SID) of a machine in a Dedicated Catalog. These steps do not apply to MCS-provisioned machines.

Note: A dedicated machine might fail to register with the DDC after removing and rejoining it to a domain because of the change in the SID of the machine.


Instructions

Capturing the Current Configuration of the Broken Machine

Complete the following steps:

  1. Identify the Universally Unique Identifier (UUID) of the broken machines from the Host Console, as displayed in the following screen shot:
    User-added image

  2. Load a PowerShell window as a full administrator.
    Note: This same administratordeployed XenDesktop previously.

  3. Run the following command to initialize the PowerShell environment.
    Add-PSSnapin Citrix.*

  4. Gather the Catalog configuration of the machine using the get-broker machine command: 
    Get-brokermachine –HostedMachineId ‘7429b1f9-dcb9-7b5a-7a68-b789efa46f66’

  5. Copy the results to a Text file for review.

Following is the sample of the broken.txt file:

AssignedClientName :
AssignedIPAddress :
AssociatedUserFullNames : { }
AssociatedUserNames : { }
AssociatedUserUPNs : { }
CatalogKind : ThinCloned
CatalogName : Dedicated
CatalogUid : 3
DNSName :
DesktopUid : 16
HostedMachineId : 7429b1f9-dcb9-7b5a-7a68-b789efa46f66
HostedMachineName : Dedicated01
HypervisorConnectionName : XenServer1
HypervisorConnectionUid : 6
IsAssigned : False
LastHostingUpdateTime : 5/25/2012 10:26:31 AM
MachineName : S-1-5-21- XXXXXXXXX-XXXXXXXXXX- XXXXXXXXXX- XXXX99
PowerActionPending : False
PowerState : Off
RegistrationState : Unregistered
SID : S-1-5-21- BADBADBAD-BADBADBADX- BADBADBADX- BADX99
Uid : 65
WillShutdownAfterUse : F

Removing Machine from the Environment

Complete the following steps:

  1. From Console, power off the machine and place the broken machine into maintenance mode.

  2. Remove broken machine from desktop group.

  3. Remove broken machine from catalog.

  4. From the PowerShell console, use the following syntax to add the previously broken machine to the catalog using the machines current SID as the machine name:

New-BrokerMachine -MachineName <String> -CatalogUid Int32 -HostedMachineId <String> -HypervisorConnectionUid <Int32>

Example:

New-BrokerMachine -MachineName ‘MYDOM\Dedicated01’ -CatalogUid 3 -HostedMachineId ‘7429b1f9-dcb9-7b5a-7a68-b789efa46f66’ -HypervisorConnectionUid 6

Issue/Introduction

This article describes how to change the Security ID (SID) of a machine in a Dedicated Catalog.