Needed a tool which would automatically remove users from Distribution lists

  • Thread starter Thread starter Praseed
  • Start date Start date
P

Praseed

Ours is network with around 500 Computers logged onto a
domain.When any users resign we normally disable the
Ids .Is there any tool which would automatically remove
these users from the various distribution lists in which
they have been added.
 
Ours is network with around 500 Computers logged onto a
domain.When any users resign we normally disable the
Ids .Is there any tool which would automatically remove
these users from the various distribution lists in which
they have been added.


See tip 6820 in the 'Tips & Tricks' at http://www.jsiinc.com

Use:
dsget user "cn=Jon Smith,cn=users,dc=microsoft,dc=com" -memberof -expand in a
FOR command loop to issue a DSGET GROUP <DN from -memberof> -secgrp

and test if the group is a distribution or security group. If distribution, use
the DSMOD GROUP command to delete the user DN from the group.

Tip 7225 will get you started.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Back
Top