winsysadminblog.com
Remove all disabled user from an Active Directory Group with Power Shell using Quest Active Roles AD Management
The following code snippet which I ran through PowerShell ISE (learn how to get it on Windows Server) will remove all disabled users from a particular group. Useful for the end of year / start of …