Set-PnPDisableSpacesActivation
SYNOPSIS
Sets if SharePoint Spaces should be disabled.
SYNTAX
Set-PnPDisableSpacesActivation -Disable <SwitchParameter> [-Scope <String>] [-Identity <SitePipeBind>] [-Connection <PnPConnection>]
DESCRIPTION
This cmdlet disables or enables SharePoint Spaces for a specific site collection or entire SharePoint tenant.
EXAMPLES
EXAMPLE 1
Set-PnPDisableSpacesActivation -Disable:$true -Scope Tenant
Disables SharePoint Spaces on the entire tenant.
EXAMPLE 2
Set-PnPDisableSpacesActivation -Disable -Scope Site -Identity "https://contoso.sharepoint.com"
Disables SharePoint Spaces on https://contoso.sharepoint.com
EXAMPLE 3
Set-PnPDisableSpacesActivation -Disable:$false -Scope Site -Identity "https://contoso.sharepoint.com"
Enables SharePoint Spaces on https://contoso.sharepoint.com
PARAMETERS
-Disable
Sets if SharePoint Spaces should be enabled or disabled.
Type: SwitchParameter
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Connection
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Identity
Specifies the URL of the SharePoint Site on which SharePoint Spaces should be disabled. Must be provided if Scope is set to Site.
Type: SPOSitePipeBind
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: True
Accept wildcard characters: False
-Scope
Defines if SharePoint Spaces should be disabled for the entire tenant or for a specific site collection.
Type: DisableSpacesScope
Parameter Sets: (All)
Accepted values: Tenant, Site
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False