Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit 07637ed

Browse files
Merge pull request #2718 from pnp/dev
June 2020 Release
2 parents 812f074 + 152922a commit 07637ed

File tree

205 files changed

+4815
-1778
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+4815
-1778
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
###Notice: many issues / bugs reported are actually related to the PnP Core Library which is used behind the scenes. Consider carefully where to report an issue:###
22

3-
1. **Are you using ```Apply-SPOProvisioningTemplate``` or ```Get-SPOProvisioningTemplate```**? The issue is most likely related to the Provisioning Engine. The Provisioning engine is _not_ located in the PowerShell repo. Please report the issue here: https://github.com/officedev/PnP-Sites-Core/issues.
3+
1. **Are you using ```Apply-PnPProvisioningTemplate``` or ```Get-PnPProvisioningTemplate```**? The issue is most likely related to the Provisioning Engine. The Provisioning engine is _not_ located in the PowerShell repo. Please report the issue here: https://github.com/pnp/PnP-Sites-Core/issues.
44
2. **Is the issue related to the cmdlet itself, its parameters, the syntax, or do you suspect it is the code of the cmdlet that is causing the issue?** Then please continue reporting the issue in this repo.
5-
3. **If you think that the functionality might be related to the underlying libraries that the cmdlet is calling** (We realize that might be difficult to determine), please first double check the code of the cmdlet, which can be found here: https://github.com/OfficeDev/PnP-PowerShell/tree/master/Commands. If related to the cmdlet, continue reporting the issue here, otherwise report the issue at https://github.com/officedev/PnP-Sites-Core/issues
5+
3. **If you think that the functionality might be related to the underlying libraries that the cmdlet is calling** (We realize that might be difficult to determine), please first double check the code of the cmdlet, which can be found here: https://github.com/pnp/PnP-PowerShell/tree/master/Commands. If related to the cmdlet, continue reporting the issue here, otherwise report the issue at https://github.com/pnp/PnP-Sites-Core/issues
66

77
### Reporting an Issue or Missing Feature
88
Please confirm what it is that your reporting
@@ -19,10 +19,11 @@ Please include complete code samples in-line or linked from [gists](https://gist
1919
### Which version of the PnP-PowerShell Cmdlets are you using?
2020
- [ ] PnP PowerShell for SharePoint 2013
2121
- [ ] PnP PowerShell for SharePoint 2016
22+
- [ ] PnP PowerShell for SharePoint 2019
2223
- [ ] PnP PowerShell for SharePoint Online
2324

2425
### What is the version of the Cmdlet module you are running?
25-
(you can retrieve this by executing ```Get-Module -Name *pnppowershell* -ListAvailable```)
26+
(you can retrieve this by executing ```Get-Module -Name sharepointpnppowershell* -ListAvailable```)
2627

2728
### How did you install the PnP-PowerShell Cmdlets?
2829
- [ ] MSI Installed downloaded from GitHub

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Before creating a pull request, make sure that you have read the contribution file located at
22

3-
https://github.com/SharePoint/PnP-PowerShell/blob/dev/CONTRIBUTING.md
3+
https://github.com/pnp/PnP-PowerShell/blob/dev/CONTRIBUTING.md
44

55
## Type ##
66
- [ ] Bug Fix
0 Bytes
Binary file not shown.
8 Bytes
Binary file not shown.

CHANGELOG.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,52 @@ All notable changes to this project will be documented in this file.
55

66
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
77

8+
## [3.23.2007.0] (not yet released)
9+
10+
### Added
11+
12+
### Changed
13+
14+
### Contributors
15+
16+
17+
## [3.22.2006.0]
18+
19+
### Added
20+
- Added `-ValuesOnly` option to `Get-PnPLabel` which will return more detailed information regarding the retention label set on a list or library and return the information as properties instead of written text [PR #2710](https://github.com/pnp/PnP-PowerShell/pull/2710)
21+
- Added `-PreferredDataLocation` option to `New-PnPSite` which allows for providing a geography in which the new SharePoint sitecollection should be created. Only applicable on multi-geo enabled tenants. [PR #2708](https://github.com/pnp/PnP-PowerShell/pull/2708)
22+
- Added `EnableAIPIntegration` option to `Set-PnPTenant` which allows enabling Azure Information Protection integration with SharePoint Online and OneDrive for Business on your tenant [PR #2703](https://github.com/pnp/PnP-PowerShell/pull/2703)
23+
- Added `Get-PnPAADUser` cmdlet which allows retrieval of users from Azure Active Directory through the Microsoft Graph API [PR #2626](https://github.com/pnp/PnP-PowerShell/pull/2626)
24+
- Added `Add-PnPGraphSubscription`, `Get-PnPGraphSubscription`, `Remove-PnPGraphSubscription` and `Set-PnPGraphSubscription` to work with Microsoft Graph Subscriptions [PR #2673](https://github.com/SharePoint/PnP-PowerShell/pull/2673)
25+
- Added `Reset-PnPUnifiedGroupExpiration` which allows the expiration date of an Office 365 Group to be extended by the number of days defined in the Azure Active Directory Group Expiration policy [PR #2655](https://github.com/pnp/PnP-PowerShell/pull/2655)
26+
- Added following arguments to `Set-PnPWeb` allowing them to be set: `CommentsOnSitePagesDisabled`, `DisablePowerAutomate`, `MegaMenuEnabled`, `MembersCanShare`, `NavAudienceTargetingEnabled`, `QuickLaunchEnabled` and `NoCrawl` [PR #2633](https://github.com/pnp/PnP-PowerShell/pull/2633)
27+
- Added `Set-PnPUserOneDriveQuota`, `Reset-PnPUserOneDriveQuotaToDefault` and `Get-PnPUserOneDriveQuota` commands to work with quotas on OneDrive for Business sites [PR #2630](https://github.com/SharePoint/PnP-PowerShell/pull/2630)
28+
- Added `Get-PnPTenantSyncClientRestriction` and `Set-PnPTenantSyncClientRestriction` cmdlets to allow configuring tenant wide OneDrive sync restriction settings [PR #2649](https://github.com/pnp/PnP-PowerShell/pull/2649)
29+
- Added `Disable-PnPSharingForNonOwnersOfSite` and `Get-PnPSharingForNonOwnersOfSite` cmdlets to control disabling the ability for only owners of the site to be allowed to share the site or its files and folders with others [PR #2641](https://github.com/pnp/PnP-PowerShell/pull/2641)
30+
- Added `Get-PnPIsSiteAliasAvailable` which allows checking if a certain alias is still available to create a new site collection with [PR #2698](https://github.com/pnp/PnP-PowerShell/pull/2698)
31+
- Added `Get-PnPFooter` and `Set-PnPFooter` to work with the footer shown on Modern Communication pages [PR #2634](https://github.com/pnp/PnP-PowerShell/pull/2634)
32+
- Added ability to getting and setting the title and logo shown in the footer of a Modern Communication site [PR #2715](https://github.com/pnp/PnP-PowerShell/pull/2715)
33+
- Added `-SensitivityLabel` option to `New-PnPSite` which allows for directly assigning a sensitivity label to a SharePoint sitecollection when creating it. Requires modern sensitivity labels and E5 licenses to be enabled on the tenant. [PR #2713](https://github.com/pnp/PnP-PowerShell/pull/2713)
34+
- Added `Get-PnPOffice365CurrentServiceStatus`, `Get-PnPOffice365HistoricalServiceStatus`, `Get-PnPOffice365ServiceMessage` and `Get-PnPOffice365Services` to retrieve information from the Office 365 Management API regarding the Office 365 services [PR #2684](https://github.com/pnp/PnP-PowerShell/pull/2684)
35+
- Added `Get-PnPAvailableLanguage` which returns a list of all supported languages on the SharePoint web [PR #2716](https://github.com/pnp/PnP-PowerShell/pull/2716)
36+
37+
### Changed
38+
- Fixed uploading a file using `Add-PnPFile` using `-ContentType` throwing an exception [PR #2619](https://github.com/pnp/PnP-PowerShell/pull/2619)
39+
- Fixed using `Connect-PnPOnline -AppId <appid> -AppSecret <appsecret> -AADDomain` not actually authenticating to Microsoft Graph [PR #2624](https://github.com/pnp/PnP-PowerShell/pull/2624)
40+
- Updated `Get-PnPWorkflowInstance` to allow passing in a workflow subscription to list all running instances of a specific workflow [PR #2636](https://github.com/pnp/PnP-PowerShell/pull/2636)
41+
- Implementation of `Move-PnPFile` has been changed adding `-TargetServerRelativeLibrary` for SharePoint Online to allow moving files to other site collections [PR #2688](https://github.com/pnp/PnP-PowerShell/pull/2688)
42+
43+
### Contributors
44+
- Alberto Suarez [holylander]
45+
- Rune Sperre [rsperre]
46+
- Nik Charlebois [NikCharlebois]
47+
- Eduardo Garcia-Prieto [egarcia74]
48+
- Koen Zomers [koenzomers]
49+
- James May [fowl2]
50+
- Marc D Anderson [sympmarc]
51+
- Kunj Balkrishna Sangani [kunj-sangani]
52+
- Gautam Sheth [gautamdsheth]
53+
854
## [3.21.2005.0]
955

1056
### Added

Commands/Admin/AddOffice365GroupToSite.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@
1010
namespace SharePointPnP.PowerShell.Commands.Admin
1111
{
1212
[Cmdlet(VerbsCommon.Add, "PnPOffice365GroupToSite")]
13-
[CmdletHelp("Groupifies a classic team site by creating an Office 365 group for it and connecting the site with the newly created group",
14-
DetailedDescription = "This command allows you to add an Office 365 Unified group to an existing classic site collection.",
13+
[CmdletHelp("Groupifies a classic team site by creating a Microsoft 365 group for it and connecting the site with the newly created group",
14+
DetailedDescription = "This command allows you to add a Microsoft 365 Unified group to an existing classic site collection.",
1515
SupportedPlatform = CmdletSupportedPlatform.Online,
1616
Category = CmdletHelpCategory.TenantAdmin)]
1717
[CmdletExample(
1818
Code = @"PS:> Add-PnPOffice365GroupToSite -Url ""https://contoso.sharepoint.com/sites/FinanceTeamsite"" -Alias ""FinanceTeamsite"" -DisplayName = ""My finance team site group""",
1919
Remarks = @"This will add a group called MyGroup to the current site collection", SortOrder = 1)]
2020
public class AddOffice365GroupToSite: PnPAdminCmdlet
2121
{
22-
[Parameter(Mandatory = true, HelpMessage = @"Url of the site to be connected to an Office 365 Group.")]
22+
[Parameter(Mandatory = true, HelpMessage = @"Url of the site to be connected to an Microsoft 365 Group")]
2323
public string Url;
2424

2525
[Parameter(Mandatory = true, HelpMessage = @"Specifies the alias of the group. Cannot contain spaces.")]
2626
public string Alias;
2727

28-
[Parameter(Mandatory = false, HelpMessage = @"The optional description of the group.")]
28+
[Parameter(Mandatory = false, HelpMessage = @"The optional description of the group")]
2929
public string Description;
3030

31-
[Parameter(Mandatory = true, HelpMessage = @"The display name of the group.")]
31+
[Parameter(Mandatory = true, HelpMessage = @"The display name of the group")]
3232
public string DisplayName;
3333

34-
[Parameter(Mandatory = false, HelpMessage = @"Specifies the classification of the group.")]
34+
[Parameter(Mandatory = false, HelpMessage = @"Specifies the classification of the group")]
3535
public string Classification;
3636

3737
[Parameter(Mandatory = false, HelpMessage = @"Specifies if the group is public. Defaults to false.")]

Commands/Admin/GetHubSiteChild.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace SharePointPnP.PowerShell.Commands.Admin
1515
"Retrieves all sites linked to a specific hub site",
1616
Category = CmdletHelpCategory.TenantAdmin,
1717
SupportedPlatform = CmdletSupportedPlatform.Online)]
18-
[CmdletExample(Code = @"PS:> Get-PnPHubChildSite -Identity https://contoso.sharepoint.com/sites/myhubsite", Remarks = "Returns the sites having configured the provided hub site as their hub site", SortOrder = 1)]
18+
[CmdletExample(Code = @"PS:> Get-PnPHubSiteChild -Identity https://contoso.sharepoint.com/sites/myhubsite", Remarks = "Returns the sites having configured the provided hub site as their hub site", SortOrder = 1)]
1919
public class GetHubSiteChild : PnPAdminCmdlet
2020
{
2121
[Parameter(ValueFromPipeline = true, Mandatory = true, HelpMessage = "The URL of the hubsite for which to receive the sites refering to it")]
@@ -47,4 +47,4 @@ protected override void ExecuteCmdlet()
4747
}
4848
}
4949
}
50-
#endif
50+
#endif

Commands/Admin/GetStorageEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace SharePointPnP.PowerShell.Commands
2020
[CmdletExample(Code = @"PS:> Get-PnPStorageEntity -Key MyKey", Remarks = "Returns the storage entity/farm property with the given key.", SortOrder = 2)]
2121
[CmdletExample(Code = @"PS:> Get-PnPStorageEntity -Scope Site", Remarks = "Returns all site collection scoped storage entities", SortOrder = 2)]
2222
[CmdletExample(Code = @"PS:> Get-PnPStorageEntity -Key MyKey -Scope Site", Remarks = "Returns the storage entity from the site collection with the given key", SortOrder = 3)]
23-
public class GetPnPStorageEntity : PnPCmdlet
23+
public class GetPnPStorageEntity : PnPSharePointCmdlet
2424
{
2525
[Parameter(Mandatory = false, HelpMessage = "The key of the value to retrieve.")]
2626
public string Key;

Commands/Admin/GetTenantAppCatalogUrl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace SharePointPnP.PowerShell.Commands
1212
[CmdletExample(
1313
Code = @"PS:> Get-PnPTenantAppCatalogUrl",
1414
Remarks = "Returns the url of the tenant scoped app catalog site collection", SortOrder = 1)]
15-
public class GetTenantAppCatalogUrl : PnPCmdlet
15+
public class GetTenantAppCatalogUrl : PnPSharePointCmdlet
1616
{
1717
protected override void ExecuteCmdlet()
1818
{

Commands/Admin/GetTenantId.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ protected override void ProcessRecord()
3232
{
3333
try
3434
{
35-
if (string.IsNullOrEmpty(TenantUrl) && SPOnlineConnection.CurrentConnection != null)
35+
if (string.IsNullOrEmpty(TenantUrl) && PnPConnection.CurrentConnection != null)
3636
{
37-
WriteObject(TenantExtensions.GetTenantIdByUrl(SPOnlineConnection.CurrentConnection.Url));
37+
WriteObject(TenantExtensions.GetTenantIdByUrl(PnPConnection.CurrentConnection.Url));
3838
}
3939
else if (!string.IsNullOrEmpty(TenantUrl))
4040
{

0 commit comments

Comments
 (0)