Set-SPODisableSpacesActivation

Disables the SharePoint Spaces activation.

Syntax

Set-SPODisableSpacesActivation
   [-Disable] <Boolean>
   [-Scope] <String>
   [[-Identity] <SpoSitePipeBind>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Disables the SharePoint Spaces activation either at Tenant level or Site level.

Examples

Example 1

PS C:\> Set-SPODisableSpacesActivation -Scope Tenant -Disable:$true

This example disables the SharePoint Spaces activation at Tenant level.

Example 2

PS C:\> Set-SPODisableSpacesActivation -Disable:$true -Identity https://contoso.sharepoint.com/sites/Marketing -Scope Site

This example disables the SharePoint Spaces activation for a site.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Disable

Set True to disable SharePoint Spaces activation, set to False to enable.

Type:Boolean
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Identity

Specifies the URL of the site collection to update.

Type:SpoSitePipeBind
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Scope

Specifies the scope.

Possible values:

  • Tenant
  • Site
Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Outputs

System.Object