| external help file | Microsoft.Online.SharePoint.PowerShell.dll-Help.xml |
|---|---|
| Module Name | Microsoft.Online.SharePoint.PowerShell |
| online version | https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/enable-spocommsite |
| applicable | SharePoint Online |
| title | Enable-SPOCommSite |
| schema | 2.0.0 |
| author | samkabue |
| ms.author | speedta |
| ms.reviewer |
Enables the communication site experience on an existing classic team site. Please read instructions in modernize classic team site before attempting to execute this cmdlet.
Enable-SPOCommSite -SiteUrl <String> [-DesignPackageId <Guid>] [<CommonParameters>]
Use this cmdlet to enable the modern communication site experience in classic team sites. You must use the SharePoint admin powershell version 20122.1200 or greater. Use of this cmdlet is subject to rollout of capability.
Enable-SPOCommSite -SiteUrl https://contoso.sharepoint.comThis example enables the communication site experience at this https://contoso.sharepoint.com site.
$orgName="<tenantname>"
$SiteURL = "<Classic site URL>"
Connect-SPOService -Url https://$orgName-admin.sharepoint.com
Enable-SPOCommSite -SiteUrl $SiteURLTROUBLESHOOTING
Error case 1: Wrong credentials
If the SharePoint admin user credentials is wrong or invalid, you will see this error:
Connect-SPOService : The sign-in name or password does not match one in the Microsoft account system.
Error case 2: Feature is not yet enabled for your tenant
The use of this cmdlet is subject to the feature rollout. If the feature is not yet available for your tenant, the cmdlet will not execute and will show this error:
Enable-SPOCommSite : The requested operation is part of an experimental feature that is not supported in the current environment.
Error case 3: Site URL input is invalid
If the site URL input points to a site that does not exist, you will see the following error message:
Enable-SPOCommSite : File Not Found.
Error case 4: Classic publishing feature is currently enabled
We do not support sites that currently have or have had in the past enabled the classic publishing features. If you see this error, your site is not eligible for this feature enablement. Please check requirements for this feature.
Enable-SPOCommSite : The operation cannot be performed because the Publishing feature is enabled on the site.
Applicable: SharePoint Online
GUID identifying the communication site design. This is not a required input. If no input is provided, the topic design will be applied to the new home page. here are the IDs for the supported design packages:
- Topic: 96c933ac-3698-44c7-9f4a-5fd17d71af9e
- Showcase: 6142d2a0-63a5-4ba0-aede-d9fefca2c767
- Blank: f6cc5403-0d63-442e-96c0-285923709ffc
Type: System.Guid
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseApplicable: SharePoint Online
URL of the site for enabling the modern communication site experience. This is a required parameter
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.