Clearing/repopulating Groups Every Night, is it bad for AD?

I have to write a PowerShell script to sync a list of users and departments to AD department groups. It's easy enough to read the text file and add everyone to the appropriate group, but if the user changes departments I need a way to remove them from their old group.

Rather than complicated logic to build arrays of existing members and proposed members and compare, would it really be so bad for AD's health if I just remove everyone from the department groups every night and re-add the users from the current text file?

Posted Oct 23, 2018, 7:21 PM UTC

310
Loading comments…