3

Using PowerShell I can update a site collection secondary administrator (as farm administrator):

Set-SPSiteAdministration -Identity http://contoso/sites/test -OwnerAlias "domain\testuser"

This works fine. But how can I remove the secondary administrator using PowerShell? So reverse the above.

1

For removing you can try this one.

Get-SPSite http://contoso/sites/test | Set-SPSite -SecondaryOwner $null

Set-SPSite

Also Check this post : SharePoint: Add/Remove Site Collection administrators with Powershell

  • 1
    Unfortunately it does not work. Secondary owner is still showing in 'change site collection administrators' – LightningWar Jul 18 '18 at 14:45
  • did you try to second link? – Waqas Sarwar MVP Jul 18 '18 at 15:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.