Showing posts with label update admin. Show all posts
Showing posts with label update admin. Show all posts

22 May, 2013

How to change the site collection administrators in central administration by means of PowerShell

Few days before, one of my user came to our team and requested to have a list of site collection administrators as well as to change the admins for few site collections.

In fact it's quite easy if you do by means of GUI i.e. Central Administration.

Let me brief some steps so that it would be useful to you.
-Open Central Administration
-Application Management
-change site collection administrator
-change the admins as per the requirements



this will be hectic task if you have to implement the same for more site collections i.e. bulk activity.

so that's why I come up with the solution so that it would be beneficial for everybody.

here is the script that i am talking about:
Set-SpSite "http://sharepointdemo.skylark.com" -owneralias "domain\user1" -SecondaryOwnerAlias "<domain\user2>"

If you wanna add a list of users to the site collection administrators group of every site on your SharePoint 2010 farm then please refer this:

If you have any queries/questions regarding the above mentioned information then please let me know, thank you.

Product Applies To:
-SharePoint Server 2010
-SharePoint Foundation 2010

References:
Remove a site collection administrator in SharePoint 2013

To add a primary or secondary site collection administrator by using Windows PowerShell in SharePoint 2013

Change the primary or secondary site collection administrator in SharePoint 2013

add a site collection administrator by using Central Administration

To add a site collection administrator by using Windows PowerShell

Remove a site collection administrator
http://technet.microsoft.com/en-us/library/ff631156(v=office.14).aspx