VMware Cloud Community
orian
Hot Shot
Hot Shot
Jump to solution

search in AD

Hi,

I have multiple Active Directory connected to my orchestrator.

One of them was configured to be the default active directory.

When I search a computerAD with the following command:

ActiveDirectory.getComputerADRecursively(ComputerName)

It always search in the default Active Directory.

How can I search in all Active Directory which are connected to the Orchestrator?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

getComputerADRecursively() has a second parameter which is the AD host to search.

If you want to search in all AD hosts, one option is to use AD_HostManager.findAllHosts() to get all configured AD hosts, and then in a loop invoke getComputerADRecursively() for every host.

View solution in original post

0 Kudos
2 Replies
orian
Hot Shot
Hot Shot
Jump to solution

Any ideas?

0 Kudos
iiliev
VMware Employee
VMware Employee
Jump to solution

getComputerADRecursively() has a second parameter which is the AD host to search.

If you want to search in all AD hosts, one option is to use AD_HostManager.findAllHosts() to get all configured AD hosts, and then in a loop invoke getComputerADRecursively() for every host.

0 Kudos