SharePoint 2016 Logo

Once I had to add about 3 thousand users to SharePoint group. Usually when I have to add about 100 users, I use Excel function 'CONCATENATE' to add user login and ";" separator to generate a list of users. And then I manually enter them. But 3 thousand users – it's too much for manual.

Below I write down PowerShell script for SharePoint to add users to SharePoint group.

I have left comments in script for easier to find params for script. This script takes a text file with logins (each login on each line) and adds user to SharePoint group. As a result you'll have a log-file with statistics.