Query based on OU

Hi, I need to create a query that will collect assets based on two OUs.
For example, this is what one looks like
Active Directory Domain: local.local
OU=XXX,OU=YYYY,DC=local,DC=local
I will need this query to remove the assets and to watch if they come back to work.
Does anyone know how to solve this, because I can’t find an option to build a query based on ou

I don’t think IVM pulls AD information about Assets.
If you want to report on this in IVM, you could have a script (or an ICON Workflow) that looks for members of those OUs and Tags them in IVM, then report on that Tag’s membership.