This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 659
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2081 from SharePoint/dev
May 2019 Release
- Loading branch information
Showing
63 changed files
with
1,539 additions
and
944 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
184 changes: 167 additions & 17 deletions
184
Binaries/release/SharePointPnP.Modernization.Framework.xml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#if !ONPREMISES | ||
using Microsoft.SharePoint.Client; | ||
using SharePointPnP.PowerShell.CmdletHelpAttributes; | ||
using SharePointPnP.PowerShell.Commands.Base; | ||
using System.Management.Automation; | ||
|
||
|
||
namespace SharePointPnP.PowerShell.Commands | ||
{ | ||
[Cmdlet(VerbsLifecycle.Enable, "PnPCommSite")] | ||
[CmdletHelp("Enable communication site on the root site of a tenant", | ||
@"The Enable-PnPCommSite cmdlet converts the root site of a tenant to be a communication site. This action is not reversible.", | ||
Category = CmdletHelpCategory.TenantAdmin, SupportedPlatform = CmdletSupportedPlatform.Online)] | ||
[CmdletExample( | ||
Code = @"PS:> Enable-PnPCommSite", | ||
Remarks = @"This will convert the root site collection to become a communication site", | ||
SortOrder = 1)] | ||
[CmdletExample( | ||
Code = @"PS:> Enable-PnPCommSite -SiteUrl https://tenant.sharepoint.com", | ||
Remarks = @"This will convert the root site collection to become a communication site", | ||
SortOrder = 2)] | ||
public class EnableCommSite : PnPAdminCmdlet | ||
{ | ||
[Parameter(Mandatory = false, HelpMessage = @"Specifies the full URL of the new site collection. It must be in a valid managed path in the company's site. For example, for company contoso, valid managed paths are https://contoso.sharepoint.com/sites and https://contoso.sharepoint.com/teams.")] | ||
public string SiteUrl; | ||
|
||
protected override void ExecuteCmdlet() | ||
{ | ||
Tenant.EnableCommSite(SiteUrl); | ||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.