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

Commit 771c4f2

Browse files
Merge pull request #1961 from SharePoint/dev
March 2019 Release
2 parents ea99fb5 + 4d68d55 commit 771c4f2

File tree

121 files changed

+2913
-917
lines changed

Some content is hidden

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

121 files changed

+2913
-917
lines changed

.github/ISSUE_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
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.
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 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/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
66

77
### Reporting an Issue or Missing Feature
88
Please confirm what it is that your reporting
Binary file not shown.

Binaries/SharePointPnP.Modernization.Framework.xml

+729-174
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Binaries/release/SharePointPnP.Modernization.Framework.xml

+677-206
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

+37-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,40 @@ 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.8.1904.0] - unreleased
9+
10+
### Added
11+
12+
### Changed
13+
14+
### Contributors
15+
16+
## [3.7.1903.0]
17+
18+
### Added
19+
- Added support for client side pages on SP2019
20+
- Added support for ALM cmdlets (Add-PnPApp, Get-PnPApp etc.) on SP2019
21+
- Added Add-PnPAlert cmdlet to create alerts (SPO and SP2019 only)
22+
- Added Get-PnPAlert to list alerts (SPO and SP2019 only)
23+
- Added Remove-PnPAlert to remove alerts (SPO and SP2019 only)
24+
- Added support to Connect-PnPOnline authenticate to SharePoint Online when Legacy Authentication has been turned off (Set-PnPTenant -LegacyAuthProtocolsEnabled:$false / Set-SPOTenant -LegacyAuthProtocolsEnabled:$false)
25+
- Support for cross site page transformation (create modern pages in other site then the one hosting the classic pages) via the TargetWebUrl parameter
26+
- Support for page transformation mapping parameters (UseCommunityScriptEditor and SummaryLinksToHtml). The first one will use the community script editor as a possible modern target web part, the second one will transform the summarylinks web part to html text instead of the default QuickLinks web part
27+
28+
### Changed
29+
- Many typo fixes in code
30+
- Apply-PnPTenantTemplate will now list the sites created after applying a tenant template.
31+
- Fixed an issue with Connect-PnPOnline throwing an exception when authenticating using the -SPOManagementShell parameter.
32+
- Fixed connection issue with URL's containing spaces - #1250
33+
34+
### Contributors
35+
36+
- Heinrich Ulbricht [heinrich-ulbricht]
37+
- Nick Schonning [nschonni]
38+
- Koen Zomers [KoenZomers]
39+
- Marvin Dickhaus [Weishaupt]
40+
- Lars Fernhomberg [lafe]
41+
842
## [3.6.1902.2]
943

1044
### Added
@@ -137,7 +171,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
137171
- Read-PnPProvisioningHierarchy : Reads an existing (file based) provisioning hierarchy into an in-memory instance
138172
- Save-PnPProvisioningHierarchy : Saves an in-memory provisioning hierarchy to a pnp file
139173
- Test-PnPProvisioningHierarchy : Tests an in-memory hierarchy if all template references are correct in the site sequence
140-
- Get-PnPException : Returns the last occured exception that occured while using PowerShell.
174+
- Get-PnPException : Returns the last occurred exception that occurred while using PowerShell.
141175

142176
### Changed
143177
- Updated Set-PnPSite to allow for setting of a logo on modern team site
@@ -182,7 +216,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
182216

183217
## [2.27.1806.0]
184218
### Added
185-
- Added Grant-PnPTenantServicePrincipalPermission to explicitely grant a permission on a resource for the tenant.
219+
- Added Grant-PnPTenantServicePrincipalPermission to explicitly grant a permission on a resource for the tenant.
186220

187221
### Changed
188222
- Fixed edge cases where progress sent to PowerShell would be null, causing the provisioning of a template to end prematurely.
@@ -567,7 +601,7 @@ jensotto
567601

568602
**2015-07-13**
569603

570-
* Added additional functionality for connect-sponline in resolving credentials. If no credentials are specified throught the -Credentials parameter, a query is done against the Windows Credentials Manager to retrieve credentials. First is checked for the full URL of the connect request, e.g. https://yourserver/sites/yoursite. If no credential is found for that entry, a query is done for for https://yourserver/sites. If no credential is found that entry, a query is done for https://yourserver, if no credential is found for that entry a query is done for 'yourserver'. So:
604+
* Added additional functionality for connect-sponline in resolving credentials. If no credentials are specified throught the -Credentials parameter, a query is done against the Windows Credentials Manager to retrieve credentials. First is checked for the full URL of the connect request, e.g. https://yourserver/sites/yoursite. If no credential is found for that entry, a query is done for https://yourserver/sites. If no credential is found that entry, a query is done for https://yourserver, if no credential is found for that entry a query is done for 'yourserver'. So:
571605
```
572606
Connect-SPOnline -Url https://yourtenant.sharepoint.com/sites/demosite
573607
```

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Please see following page for additional insights on the model.
1616

1717
Once you have downloaded the code, in the folder with the PnP PowerShell source code, open the solution file SharePointPnP.PowerShell.sln.
1818

19-
If you have set up up the projects and you are ready to build the source code, make sure to build the SharePointPnP.PowerShellModuleFilesGenerator project first. This project will be executed after every build and it will generate the required PSD1 and XML files with cmdlet documentation in them.
19+
If you have set up the projects and you are ready to build the source code, make sure to build the SharePointPnP.PowerShellModuleFilesGenerator project first. This project will be executed after every build and it will generate the required PSD1 and XML files with cmdlet documentation in them.
2020

2121
When you build the solution a postbuild script will copy the required files to a folder in your users folder called
2222
*C:\Users\\\<YourUserName\>\Documents\WindowsPowerShell\Modules\SharePointPnPPowerShell\<Platform\>*. During build also the help and document files will be generated. If you have a session of PowerShell open in which you have used the PnP Cmdlets, make sure to close this PowerShell session first before you build. You will receive a build error otherwise because it tries to overwrite files that are in use.
@@ -82,7 +82,7 @@ public class MyCmdlet : SPOWebCmdlet
8282
#endif
8383
```
8484

85-
If only parts of a cmdlet require different behaviour based upon the different version of the SDK, you are recommended to use the #ONPREMISES or other available preprocessor variable throughout your code to exclude or include certain code.
85+
If only parts of a cmdlet require different behavior based upon the different version of the SDK, you are recommended to use the #ONPREMISES or other available preprocessor variable throughout your code to exclude or include certain code.
8686

8787
### Cmdlets will have to use common verbs
8888

Commands/Admin/AddTenantTheme.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace SharePointPnP.PowerShell.Commands.Admin
1515
{
1616
[Cmdlet(VerbsCommon.Add, "PnPTenantTheme")]
1717
[CmdletHelp("Adds or updates a theme to the tenant.",
18-
DetailedDescription = @"Adds or updates atheme to the tenant.",
18+
DetailedDescription = @"Adds or updates a theme to the tenant.",
1919
SupportedPlatform = CmdletSupportedPlatform.Online,
2020
Category = CmdletHelpCategory.TenantAdmin)]
2121
[CmdletExample(

Commands/Admin/SetTenant.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace SharePointPnP.PowerShell.Commands.Admin
3232
Remarks = @"This example enables the use of special persisted cookie for Open with Explorer.", SortOrder = 3)]
3333
public class SetTenant : PnPAdminCmdlet
3434
{
35-
const string ParameterSet_COMPATIBILITYLEVEL = "Compabitility Level";
35+
const string ParameterSet_COMPATIBILITYLEVEL = "Compatibility Level";
3636

3737
[Parameter(Mandatory = false, ParameterSetName = ParameterAttribute.AllParameterSets, HelpMessage = "Specifies the lower bound on the compatibility level for new sites.")]
3838
public int MinCompatibilityLevel;
@@ -90,7 +90,7 @@ External services are defined as services that are not in the Office 365 datacen
9090

9191
[Parameter(Mandatory = false, HelpMessage = @"Enables the administrator to hide the All Users claim groups in People Picker.
9292
93-
When users share an item with ""All Users (x)"", it is accessible to all organization members in the tenant's Azure Active Directory who have authenticated with via this method. When users share an item with ""All Users (x)"" it is accessible to all organtization members in the tenant that used NTLM to authentication with SharePoint.
93+
When users share an item with ""All Users (x)"", it is accessible to all organization members in the tenant's Azure Active Directory who have authenticated with via this method. When users share an item with ""All Users (x)"" it is accessible to all organization members in the tenant that used NTLM to authentication with SharePoint.
9494
9595
Note, the All Users(authenticated) group is equivalent to the Everyone claim, and shows as Everyone.To change this, see - ShowEveryoneClaim.
9696
@@ -190,11 +190,11 @@ This value should be configured with the login domain that is used by your compa
190190
True - Generates a special cookie that will allow ""Open with Explorer"" to function if the ""Keep Me Signed In"" box is not checked at sign -in.")]
191191
public bool? UsePersistentCookiesForExplorerView;
192192

193-
[Parameter(Mandatory = false, HelpMessage = @"When the feature is enabled, all external sharing invitations that are sent will blind copy the e-mail messages listed in the BccExternalSharingsInvitationList.
193+
[Parameter(Mandatory = false, HelpMessage = @"When the feature is enabled, all external sharing invitations that are sent will blind copy the e-mail messages listed in the BccExternalSharingInvitationsList.
194194
195195
The valid values are:
196196
False (default) - BCC for external sharing is disabled.
197-
True - All external sharing invitations that are sent will blind copy the e-mail messages listed in the BccExternalSharingsInvitationList.")]
197+
True - All external sharing invitations that are sent will blind copy the e-mail messages listed in the BccExternalSharingInvitationsList.")]
198198
public bool? BccExternalSharingInvitations;
199199

200200
[Parameter(Mandatory = false, HelpMessage = @"Specifies a list of e-mail addresses to be BCC'd when the BCC for External Sharing feature is enabled.
@@ -340,7 +340,7 @@ Multiple addresses can be specified by creating a comma separated list with no s
340340
[Parameter(Mandatory = false)]
341341
public bool? NotificationsInSharePointEnabled;
342342

343-
[Parameter(Mandatory = false, HelpMessage = @"ermits the use of special characters in file and folder names in SharePoint Online and OneDrive for Business document libraries.
343+
[Parameter(Mandatory = false, HelpMessage = @"Permits the use of special characters in file and folder names in SharePoint Online and OneDrive for Business document libraries.
344344
345345
Note:
346346
The only two characters that can be managed at this time are the # and % characters.
@@ -925,7 +925,7 @@ protected override void ExecuteCmdlet()
925925
}
926926
catch (PropertyOrFieldNotInitializedException)
927927
{
928-
throw new InvalidOperationException("Setting the property FilePickerExternalImageSearchEanbled is not supported by your version of the service");
928+
throw new InvalidOperationException("Setting the property FilePickerExternalImageSearchEnabled is not supported by your version of the service");
929929
}
930930
isDirty = true;
931931
}

Commands/Admin/SetTenantSite.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class SetTenantSite : PnPAdminCmdlet
4242
[Parameter(Mandatory = false, HelpMessage = "Specifies the title of the site", ParameterSetName = ParameterSet_PROPERTIES)]
4343
public string Title;
4444

45-
[Parameter(Mandatory = false, HelpMessage = "Specifies what the sharing capablilites are for the site. Possible values: Disabled, ExternalUserSharingOnly, ExternalUserAndGuestSharing, ExistingExternalUserSharingOnly", ParameterSetName = ParameterSet_PROPERTIES)]
45+
[Parameter(Mandatory = false, HelpMessage = "Specifies what the sharing capabilities are for the site. Possible values: Disabled, ExternalUserSharingOnly, ExternalUserAndGuestSharing, ExistingExternalUserSharingOnly", ParameterSetName = ParameterSet_PROPERTIES)]
4646
public SharingCapabilities? Sharing = null;
4747

4848
[Parameter(Mandatory = false, HelpMessage = "Specifies the storage quota for this site collection in megabytes. This value must not exceed the company's available quota.", ParameterSetName = ParameterSet_PROPERTIES)]
@@ -60,7 +60,7 @@ public class SetTenantSite : PnPAdminCmdlet
6060
[Parameter(Mandatory = false, HelpMessage = "Specifies if the site administrator can upgrade the site collection", ParameterSetName = ParameterSet_PROPERTIES)]
6161
public SwitchParameter? AllowSelfServiceUpgrade = null;
6262

63-
[Parameter(Mandatory = false, HelpMessage = "Specifies owner(s) to add as site collection adminstrators. They will be added as additional site collection administrators. Existing administrators will stay. Can be both users and groups.", ParameterSetName = ParameterSet_PROPERTIES)]
63+
[Parameter(Mandatory = false, HelpMessage = "Specifies owner(s) to add as site collection administrators. They will be added as additional site collection administrators. Existing administrators will stay. Can be both users and groups.", ParameterSetName = ParameterSet_PROPERTIES)]
6464
public List<string> Owners;
6565

6666
[Parameter(Mandatory = false, HelpMessage = "Sets the lockstate of a site", ParameterSetName = ParameterSet_LOCKSTATE)]

Commands/Apps/AddApp.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using OfficeDevPnP.Core.ALM;
33
using OfficeDevPnP.Core.Enums;
44
using SharePointPnP.PowerShell.CmdletHelpAttributes;
@@ -9,7 +9,7 @@ namespace SharePointPnP.PowerShell.Commands.Apps
99
{
1010
[Cmdlet(VerbsCommon.Add, "PnPApp")]
1111
[CmdletHelp("Add/uploads an available app to the app catalog",
12-
Category = CmdletHelpCategory.Apps, SupportedPlatform = CmdletSupportedPlatform.Online,
12+
Category = CmdletHelpCategory.Apps, SupportedPlatform = CmdletSupportedPlatform.Online | CmdletSupportedPlatform.SP2019,
1313
OutputType = typeof(AppMetadata))]
1414
[CmdletExample(
1515
Code = @"PS:> Add-PnPApp -Path ./myapp.sppkg",

Commands/Apps/GetApp.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Management.Automation;
@@ -15,7 +15,7 @@ namespace SharePointPnP.PowerShell.Commands.Apps
1515
[Cmdlet(VerbsCommon.Get, "PnPApp")]
1616
[CmdletHelp("Returns the available apps from the app catalog",
1717
Category = CmdletHelpCategory.Apps,
18-
OutputType = typeof(List<AppMetadata>), SupportedPlatform = CmdletSupportedPlatform.Online)]
18+
OutputType = typeof(List<AppMetadata>), SupportedPlatform = CmdletSupportedPlatform.Online | CmdletSupportedPlatform.SP2019)]
1919
[CmdletExample(
2020
Code = @"PS:> Get-PnPApp",
2121
Remarks = @"This will return all available apps from the tenant app catalog. It will list the installed version in the current site.",
@@ -26,7 +26,7 @@ namespace SharePointPnP.PowerShell.Commands.Apps
2626
SortOrder = 2)]
2727
[CmdletExample(
2828
Code = @"PS:> Get-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f",
29-
Remarks = @"This willr retrieve the specific app from the app catalog.",
29+
Remarks = @"This will retrieve the specific app from the app catalog.",
3030
SortOrder = 3)]
3131
public class GetApp : PnPCmdlet
3232
{

Commands/Apps/GrantTenantServicePrincipalPermission.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
namespace SharePointPnP.PowerShell.Commands.Apps
1414
{
1515
[Cmdlet(VerbsSecurity.Grant, "PnPTenantServicePrincipalPermission")]
16-
[CmdletHelp(@"Explicitely grants a specified permission to the ""SharePoint Online Client"" service principal",
16+
[CmdletHelp(@"Explicitly grants a specified permission to the ""SharePoint Online Client"" service principal",
1717
Category = CmdletHelpCategory.Apps, SupportedPlatform = CmdletSupportedPlatform.Online,
1818
OutputType = typeof(AppMetadata))]
1919
[CmdletExample(
2020
Code = @"PS:> Grant-PnPTenantServicePrincipalPermission -Scope ""Group.Read.All"" -Resource ""Microsoft Graph""",
21-
Remarks = @"This will explicitely grant the Group.Read.All permission on the Microsoft Graph resource", SortOrder = 1)]
21+
Remarks = @"This will explicitly grant the Group.Read.All permission on the Microsoft Graph resource", SortOrder = 1)]
2222
public class GrantTenantServicePrincipalPermission : PnPAdminCmdlet
2323
{
2424
[Parameter(Mandatory = true, HelpMessage = "The scope to grant the permission for")]

Commands/Apps/InstallApp.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using OfficeDevPnP.Core.ALM;
33
using OfficeDevPnP.Core.Enums;
44
using SharePointPnP.PowerShell.CmdletHelpAttributes;
@@ -11,7 +11,7 @@ namespace SharePointPnP.PowerShell.Commands.Apps
1111
{
1212
[Cmdlet(VerbsLifecycle.Install, "PnPApp")]
1313
[CmdletHelp("Installs an available app from the app catalog",
14-
Category = CmdletHelpCategory.Apps, SupportedPlatform = CmdletSupportedPlatform.Online)]
14+
Category = CmdletHelpCategory.Apps, SupportedPlatform = CmdletSupportedPlatform.Online | CmdletSupportedPlatform.SP2019)]
1515
[CmdletExample(
1616
Code = @"PS:> Install-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe",
1717
Remarks = @"This will install an app that is available in the tenant scoped app catalog, specified by the id, to the current site.",

Commands/Apps/PublishApp.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using OfficeDevPnP.Core.Enums;
33
using SharePointPnP.PowerShell.CmdletHelpAttributes;
44
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
@@ -9,7 +9,7 @@ namespace SharePointPnP.PowerShell.Commands.Apps
99
{
1010
[Cmdlet(VerbsData.Publish, "PnPApp")]
1111
[CmdletHelp("Publishes/Deploys/Trusts an available app in the app catalog",
12-
Category = CmdletHelpCategory.Apps, SupportedPlatform = CmdletSupportedPlatform.Online)]
12+
Category = CmdletHelpCategory.Apps, SupportedPlatform = CmdletSupportedPlatform.Online | CmdletSupportedPlatform.SP2019)]
1313
[CmdletExample(
1414
Code = @"PS:> Publish-PnPApp -Identity 2646ccc3-6a2b-46ef-9273-81411cbbb60f",
1515
Remarks = @"This will deploy/trust an app into the app catalog. Notice that the app needs to be available in the tenant scoped app catalog", SortOrder = 1)]

Commands/Apps/RemoveApp.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !ONPREMISES
1+
#if !SP2013 && !SP2016
22
using OfficeDevPnP.Core.Enums;
33
using SharePointPnP.PowerShell.CmdletHelpAttributes;
44
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
@@ -8,7 +8,7 @@
88
namespace SharePointPnP.PowerShell.Commands.Apps
99
{
1010
[Cmdlet(VerbsCommon.Remove, "PnPApp")]
11-
[CmdletHelp("Removes an app from the app catalog", SupportedPlatform = CmdletSupportedPlatform.Online,
11+
[CmdletHelp("Removes an app from the app catalog", SupportedPlatform = CmdletSupportedPlatform.Online | CmdletSupportedPlatform.SP2019,
1212
Category = CmdletHelpCategory.Apps)]
1313
[CmdletExample(
1414
Code = @"PS:> Remove-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe",

0 commit comments

Comments
 (0)