modify domain names for hybrid org relationship

​Task: Modify domain names configured for an organization relatinship in a hybrid deployment
you can use powershell command below to complete task
$domains = (get-organizationrelationship 'On Premises to Exchange Online Organization Relations
hip').domainnames
 
Set-organizationrelationshp -id  'On Premises to Exchange Online Organization Relations
hip' -domainnames $domains