Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Remove users from distribution group

$
0
0
I'm looking for some help with automating our disable script. I have a script that disables a group of accounts and moves them into a disabled accounts OU based on their samid. I just put all the IDs in a text file and run the script. Part of our process when we disable users is to remove them from all distribution groups and forward their email to a particular user. Is there a way I can automate the forward of their mail and remove them from distribution groups only (not security or other groups). The user could be a member of any number of distribution groups so I'd need a way to query for them.

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>