Inventory all computers for the local admins

Inventory all computers for the local admins

Is there a way to query all domain computers for all the local admins and export in an csv or excel?


Thanks

Rezart