title: Verify Domain Admins against List via AD Module for PowerShell
body: <p>I have an issue of certain administrators temporarily elevating users to Domain Admins for troubleshooting. Instead of removing said administrators from the picture, I have been asked to create a script to check the Domain Admins group nightly, and remove any users that do not belong there. </p>
  
  <p>I need it to verify the Domain Admins group against a givin list in txt or csv. I could delete everone from the group nightly, then readd the desired users back, but this could create issues if someone is logging in or logging off when that happens.</p>
  
  <p>Can anyone help with this? So far I have managed to export a list of users within the group by piping get-adgroup and export-csv. But I'm failing in my attempt to get the list of users and compare to an already existing list.</p>