Add a user or group to site collection administrators group of every site collection - via powershell - Fabian Neve

About SharePoint, Office 365, and other technical stuff

Tuesday, January 16, 2018

Add a user or group to site collection administrators group of every site collection - via powershell

Use following scripts:

This script adds a user or group to the Site Collection Administrators Group of every Site Collection of a Web Application. Define your parameters in line 1 and line 2.



or

This script adds a user or group to the Site Collection Administrators Group of every Site Collection Farm-wide. Define your User or Group in line 2.