You can use an exclusion list to specify the domains that VMware Horizon excludes from the results of a domain search.

A group of two Connection Server instances, CONSVR-1 and CONSVR-2, is joined to the primary MYDOM domain and has a trusted relationship with the YOURDOM domain. The YOURDOM domain has a trusted relationship with the DEPTX and FARDOM domains.

The FARDOM domain is in a remote geographical location, and network connectivity to that domain is over a slow, high-latency link. There is no requirement for users in the FARDOM domain to be able to access the Connection Server group in the MYDOM domain.

Display the currently active domains for a member of the Connection Server group.

C:\ vdmadmin -N -domains -list -active 

Domain Information (CONSVR-1) 
============================= 
Primary Domain: MYDOM 

Domain: MYDOM DNS:mydom.mycorp.com 
Domain: YOURDOM DNS:yourdom.mycorp.com 
Domain: FARDOM DNS: fardom.mycorp.com 
Domain: DEPTX DNS:deptx.mycorp.com 
Domain: DEPTY DNS:depty.mycorp.com 
Domain: DEPTZ DNS:deptz.mycorp.com

The DEPTY and DEPTZ domains are trusted domains of the DEPTX domain.

To improve connection performance for Horizon Client, exclude the FARDOM domain from being searched by the Connection Server group.

vdmadmin -N -domains -search -domain FARDOM -add

The command displays the currently active domains after excluding the FARDOM domain from the search.

C:\ vdmadmin -N -domains -list -active 

Domain Information (CONSVR-1) 
============================= 
Primary Domain: MYDOM 

Domain: MYDOM DNS:mydom.mycorp.com 
Domain: YOURDOM DNS:yourdom.mycorp.com 
Domain: DEPTX DNS:deptx.mycorp.com 
Domain: DEPTY DNS:depty.mycorp.com 
Domain: DEPTZ DNS:deptz.mycorp.com

Extend the search exclusion list to exclude the DEPTX domain and all its trusted domains from the domain search for all Connection Server instances in a group. Also, exclude the YOURDOM domain from being available on CONSVR-1.

vdmadmin -N -domains -search -domain DEPTX -add 
vdmadmin -N -domains -exclude -domain YOURDOM -add -s CONSVR-1

Display the new domain search configuration.

C:\ vdmadmin -N -domains -list 

Domain Configuration 
==================== 
Cluster Settings
   Include:   
   Exclude:
   Search :
     FARDOM
     DEPTX 

Broker Settings: CONSVR-1
   Include: 
(*)Exclude:
     YOURDOM
   Search : 

Broker Settings: CONSVR-2
   Include:
   Exclude:
   Search :

VMware Horizon limits the domain search on each Connection Server host in the group to exclude the domains FARDOM and DEPTX. The characters (*) next to the exclusion list for CONSVR-1 indicates that VMware Horizon excludes the YOURDOM domain from the results of the domain search on CONSVR-1.

On CONSVR-1, display the currently active domains.

C:\ vdmadmin -N -domains -list -active 

Domain Information (CONSVR-1)
============================= 
Primary Domain: MYDOM 

Domain: MYDOM DNS:mydom.mycorp.com

On CONSVR-2, display the currently active domains.

C:\ vdmadmin -N -domains -list -active

Domain Information (CONSVR-2) 
============================= 
Primary Domain: MYDOM 

Domain: MYDOM DNS:mydom.mycorp.com 
Domain: YOURDOM DNS:yourdom.mycorp.com