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

2 comments:

  1. This post provides clear idea for the new viewers of blogging, that in fact how to do running a blog.


    Feel free to visit my homepage pentesting

    ReplyDelete
  2. Hi there I amm so happy I found your webpage, I really found
    you by mistake, while I was searching on Yahooo for slmething else, Regardless I am here now
    and would just like to say thank yoou for a tremenddous post and a all roun interesting blog (I also
    love the theme/design), I don't have time tto read
    it all at the minute but I have bpokmarked it and also added in your RSS feeds, so
    when I have time I will be back to read a lot
    more, Please ddo keep up the fantastic work.

    Also visit my webpage: Agence RĂ©FĂ©Rencement

    ReplyDelete

Your feedback is always appreciated. I will try to reply to your queries as soon as possible- Amol Ghuge

Note: Only a member of this blog may post a comment.