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

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

book

Article ID: CTX239468

calendar_today

Updated On:

Description

Machines deleted from the catalog and Active directory however the Manage AD account shows machines with the SID existing with the status Available and In Use

Resolution

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> 


 


Problem Cause

Stale entries

Issue/Introduction

Machines deleted from the catalog and Active directory however the Manage AD account shows machines with the SID existing with the status Available and In Use