This post will describe how you can remove users in bulk using a PowerShell script and a simple CSV file.
In SharePoint 2010, the people picker retrieves data from multiple sources.
- The Site Collection’s User Information List (UIL);
- The Profile Database (User Profile Service Application);
- Active Directory.
When you delete a user from Active Directory, this will not mean the user isn’t searchable in SharePoint. Actually, if you look for this person in the people picker, you will probably find him/her. As the data is pulled from different sources, there may be several causes for this.
Assuming the user is really deleted from the Active Directory, I will give you some pointers as to how to "delete" the users from the People picker.
1.
To remove the user from the information list, you can use the GUI. If you want more information on how to do this, read this article. Also, make sure the profile for this user is not in the Profile Database. You can remove users from the Profile Database directly by going to Central Administration -> Application Management -> Manage Service Application -> Click your User Profile Service Application -> Manage User Profiles -> Find profile by entering the name -> Select the name in the list, and click Delete.
2.
Also delete the users mysite!!
3.
Run the script (outlined in link below) with CSV
LINK:
Link