Bulk Remove Group Membership

Hi,  I am pretty new here so I thought I would make my first contribution.  I haven't seen anything similar but if I am mistaken you all have my apologies.  In my organization disabled user and computer accounts are moved to a separate OU. After a period of time they can be deleted.  Since they are disabled in bulk they can be deleted in bulk.  But I am sure everyone knows that group membership is a pain.

This little script will connect to a specific OU and remove group membership from all users and computers.  (the groups 'Domain users' or 'Domain computers' are not removed)

Anonymous