2

I need to perform a bulk delete for multiple users in the SharePoint site collection using PowerShell Script!

3

First, you should specify which users should you delete

Second, you can for each user in the user list as the following:

$usersToDelete = @()

foreach ($user in $usersToDelete)
{
    $Site.RootWeb.SiteUsers.Remove($user);
}

Check the full script at Delete Users from SharePoint Site Collection using PowerShell


See also

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.