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 #2718 from pnp/dev
June 2020 Release
- Loading branch information
Showing
205 changed files
with
4,815 additions
and
1,778 deletions.
There are no files selected for viewing
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
Binary file not shown.
Binary file not shown.
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
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,35 @@ | ||
#if !ONPREMISES | ||
using Microsoft.SharePoint.Client; | ||
using SharePointPnP.PowerShell.CmdletHelpAttributes; | ||
using SharePointPnP.PowerShell.Commands.Base; | ||
using System.Management.Automation; | ||
using SharePointPnP.PowerShell.Commands.Model; | ||
|
||
namespace SharePointPnP.PowerShell.Commands.Admin | ||
{ | ||
[Cmdlet(VerbsCommon.Get, "PnPTenantSyncClientRestriction")] | ||
[CmdletHelp(@"Returns organization-level OneDrive synchronization restriction settings", | ||
DetailedDescription = @"Returns organization-level OneDrive synchronization restriction properties such as BlockMacSync, | ||
OptOutOfGrooveBlock, and TenantRestrictionEnabled. | ||
Currently, there are no parameters for this cmdlet. | ||
You must have the SharePoint Online admin or Global admin role to run the cmdlet.", | ||
SupportedPlatform = CmdletSupportedPlatform.Online, | ||
Category = CmdletHelpCategory.TenantAdmin, | ||
OutputType = typeof(SPOTenantSyncClientRestriction))] | ||
[CmdletExample( | ||
Code = @"PS:> Get-PnPTenantSyncClientRestriction", | ||
Remarks = @"This example returns all tenant OneDrive synchronization restriction settings", SortOrder = 1)] | ||
public class GetPnPTenantSyncClientRestriction : PnPAdminCmdlet | ||
{ | ||
protected override void ExecuteCmdlet() | ||
{ | ||
ClientContext.Load(Tenant); | ||
ClientContext.Load(Tenant, t => t.HideDefaultThemes); | ||
ClientContext.ExecuteQueryRetry(); | ||
WriteObject(new SPOTenantSyncClientRestriction(Tenant)); | ||
} | ||
} | ||
} | ||
#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
Oops, something went wrong.