I wanted to know when new members are added to the domain admins group, or any existing member deleted from the domain admin group.
Is it possible to put in something like?
if return value user1, user2, user3 value = 1 Matches OK if anything, else value = 0 Error
Then we can use a lookup file to go, if 1 the check is green, if 0 the check is red. The goal is to set it, so we are checking the actual account names in the domain admin group not just the number of accounts. If its possible, Can you please send me some PowerShell script examples.