See also: Add Site Collection Administrator
โ
Command
Remove-SiteCollectionAdministrator
Description
The command to remove Site Collection Administrator rights from the user used to connect to a given Site.
The command adds the connection to the Sharegate Explorer if it wasn't already present.
Index
Examples
Remove Site Collection Administrator rights on Site
$site = Connect-Site -Url "http://myfarm1/sites/mysite" Remove-SiteCollectionAdministrator -Site $site
Remove Site Collection Administrator rights on Site from the central administration
$centralAdminSite = Connect-Site -Url http://myfarm1:5000/Remove-SiteCollectionAdministrator -CentralAdmin $centralAdminSite -SiteUrl http://myfarm1/sites/mysite/
Remove Site Collection Administrator rights on Site from a Tenant
$tenant = Connect-Tenant -Domain mytenant -BrowserRemove-SiteCollectionAdministrator -CentralAdmin $tenant.Site -SiteUrl https://mytenant.sharepoint.com/sites/mysite/
Syntax
Remove-SiteCollectionAdministrator-Site <Site>
Remove-SiteCollectionAdministrator-CentralAdmin <Site> -SiteUrl <String>
Parameters
-CentralAdmin <Site>
Specifies the farm or tenant site for the transform.
Required? | True |
Default value | None |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | CentralAdmin |
Aliases | None |
-Site <Site>
Specifies the site to transform.
Required? | True |
Default value | None |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
-SiteUrl <String>
Specifies the site to transform.
Required? | True |
Default value | None |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | CentralAdmin |
Aliases | None |