I was swapping DB’s on a Citrix cluster , I shutdown the DB’s per
Add-PSSnapin Citrix*
Set-LogSite -State Disabled
Set-LogDBConnection -DataStore Logging -DBConnection $null
Set-MonitorDBConnection -DataStore Monitor -DBConnection $null
Set-MonitorDBConnection -DBConnection $null
Set-AcctDBConnection -DBConnection $null
Set-ProvDBConnection -DBConnection $null
Set-BrokerDBConnection -DBConnection $null
Set-EnvTestDBConnection -DBConnection $null
Set-SfDBConnection -DBConnection $null
Set-HypDBConnection -DBConnection $null
Set-AnalyticsDBConnection -DBConnection $null
Set-ConfigDBConnection -DBConnection $null -force
Set-LogDBConnection -DBConnection $null -force
Set-AdminDBConnection -DBConnection $null -force
When Trying to change to new DB
$dbs = “Server=XXXX;Initial Catalog=XXXX;Integrated Security=True”
set-ConfigDBconnection -dbconnection $dbs
There was an error “There Was a Problem Communicating with the Citrix Delegated Administration Service”
I had to restart the powershell as Admin , then it let me set again