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
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!
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.