PowerShell To Add Secondary Site Collection Admin

Situation: You want to add secondary site collection administrator

Old Method: Go to Central Admin… or use stsadm

Smart Method: Use PowerShell

How?

Launch your Administrator: SharePoint 2010 Management Shell

Type

Set-SPSite –Identity http://server –SecondaryOwnerAlias justsharepoint\alpesh

 

image

This will add secondary site collection administrator. Soon will show you how you can add secondary site collection administrator for all site collections in a managed path!

One Reply to “PowerShell To Add Secondary Site Collection Admin”

  1. Hi Alpesh,

    I tried the above powershell command in my 2010 env. But it replaces the secondayr site collection admin. What if i have add more than 2 site collection administrator using powershell command ?

    Please reply.

Comments are closed.