Posts

Showing posts with the label Techniques

Automate Windows Group Member Update via CSV File or LDAP Query with PowerShell

Image
Designed for Active Directory (AD) admins, this PowerShell script  ws-dynamic-group  automates the addition or removal of group members in a Windows local or AD domain group based on content in a CSV file or an LDAP query, turning a static group into a dynamic one. Preventive features such as setting a threshold to avoid deletion of a massive number of group members by mistake, logging and mail alerts are also available. Go to Download List of Features Keeping track of a specified CSV file for adding or removing group members in a local/domain group by comparing the group members of the file with group members on a system. (For scheduling, add it to a task using the built-in Windows Task Scheduler) If group members exist in CSV file but not in system, add the usernames If group members exist in system but not in CSV file, delete the usernames Specify usernames of group members dynamically or statically Dynamic mode: the CSV input file can be created dynamically according t...