What command or script can apply a set of permissions to all computer accounts in a domain?
Points of My Scenario:
1. My domain A has a selective, cross-forest trust with domain B (A trusts B).
2. I enable users in domain B to logon to Windows hosts in domain A by granting domain-B\Domain Users group the "Read" and "Allowed to authenticate" permissions on domain-A's computer accounts.
3. I need to configure the above permission on all computer accounts in domain A (hundreds of computer accounts).
QUESTION: What command or script can I use to set such permissions on all computer accounts in Domain A?