Unable to remove the AD accounts of the machines that were already deleted from the machine catalog

1. Download the remote powershell SDK from the following location

http://download.apps.cloud.com/CitrixPoshSdk.exe

2. Install the remote powershell SDK on a domain joined machine (DO NOT install on the cloud connector servers !)

3. Launch the powershell on the local machine with admin privileges and run the commands below:

asnp citrix*

Get-XDAuthentication (
Login with the Cloud account on the pop-up window)

Get-AcctADAccount -State Available

Unlock-AcctADAccount -ADAccountSid S-x-x-x-xx-xxxxx

5. Remove the account from the Studio UI

6. If some accounts sill show up as in Use, run the command below:

Get-AcctADAccount -ADAccountSid <Account SID>

Remove-AcctADAccount -IdentityPoolName <Pool Name from above command> -ADAccountSid <Account SID>

7. If still unable to remove any machine, run the command below:

Get-AcctADAccount -State InUse

Unlock-AcctADAccount -ADAccountSid S-x-x-x-xx-xxxxx

Remove-AcctADAccount -IdentityPoolName <Pool Name from above command> -ADAccountSid <Account SID>

Related:

Leave a Reply