Could you please elaborate a bit more? I don’t quite understand what exactly you’d like the deployment task to do? To query AD and based on certain attributes of the machines decide whether to include it to the result set or not?