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

Commit 7318423

Browse files
Merge pull request #2957 from pnp/dev
October 2020 Release
2 parents f9c1596 + 1adf0eb commit 7318423

37 files changed

+925
-100
lines changed
Binary file not shown.
Binary file not shown.

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,37 @@ 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.26.2010.0 - unreleased]
9+
10+
### Added
11+
- Added `Set-PnPTenant -EnableAutoNewsDigest` option to disable the automatic news digest mails sent to end users [PR #2901](https://github.com/pnp/PnP-PowerShell/pull/2901)
12+
- Added `Register-PnPManagementShellAccess` cmdlet to register correct access required for the multi-tenant application PnP Management Shell which is used behind the scenes of the Provisioning Engine for certain actions towards SharePoint Online.
13+
- Added the description being shown of a Site Script when running `Get-PnPSiteScript` [PR #2895](https://github.com/pnp/PnP-PowerShell/pull/2895)
14+
- Added -Includes to `Get-PnPUser` [PR #2939](https://github.com/pnp/PnP-PowerShell/pull/2939)
15+
- Added an sample for Azure Automation [PR #2835](https://github.com/pnp/PnP-PowerShell/pull/2835)
16+
- Added -DisableCustomAppAuthentication to `Set-PnPTenant` [PR #2923](https://github.com/pnp/PnP-PowerShell/pull/2923)
17+
18+
### Changed
19+
- Fixed example for `Get-PnPTeamsChannel` [PR #2919](https://github.com/pnp/PnP-PowerShell/pull/2919)
20+
- Fixed possible token acquisition issue when extracting a tenant template. [PR #2874](https://github.com/pnp/PnP-PowerShell/pull/2874)
21+
- Fixed scenario when no configuration file provided with Get-PnPTenantTemplate throws an undefined error [PR #2873](https://github.com/pnp/PnP-PowerShell/pull/2873)
22+
- Fixed examples for `New-PnPTeamsTeam` [PR #2870](https://github.com/pnp/PnP-PowerShell/pull/2870)
23+
- Updated documentation for `Get-PnPField` [PR #2856](https://github.com/pnp/PnP-PowerShell/pull/2856)
24+
- Updated documentation for `Get-PnPListItem` [PR #2806](https://github.com/pnp/PnP-PowerShell/pull/2806)
25+
- Improved certificate file handling and errors shown if the file does not exist, is empty or points to a folder [PR #2888](https://github.com/pnp/PnP-PowerShell/pull/2888)
26+
- Fixed issue with where connecting with Connect-PnPOnline to an URL ending on a slash could cause an exception when using some cmdlets.
27+
28+
### Contributors
29+
- Koen Zomers [koenzomers]
30+
- Gautam Sheth [gautamdsheth]
31+
- Giacomo Pozzoni [jackpoz]
32+
- James May [fowl2]
33+
- Aimery Thomas [a1mery]
34+
- Heinrich Ulbricht [heinrich-ulbricht]
35+
- Veronique Lengelle [veronicageek]
36+
- Todd Klindt [ToddKlindt]
37+
- Paul Bullock [pkbullock]
38+
839
## [3.25.2009.1]
940

1041
### Changed

Commands/Admin/GetStorageEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace PnP.PowerShell.Commands
1313
{
14-
[Cmdlet(VerbsCommon.Get, "PnPStorageEntity", SupportsShouldProcess = true)]
14+
[Cmdlet(VerbsCommon.Get, "PnPStorageEntity")]
1515
[CmdletHelp(@"Retrieve Storage Entities / Farm Properties from either the Tenant App Catalog or from the current site if it has a site scope app catalog.",
1616
Category = CmdletHelpCategory.TenantAdmin,
1717
SupportedPlatform = CmdletSupportedPlatform.Online)]

Commands/Admin/GetTenantAppCatalogUrl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace PnP.PowerShell.Commands
77
{
8-
[Cmdlet(VerbsCommon.Get, "PnPTenantAppCatalogUrl", SupportsShouldProcess = true)]
8+
[Cmdlet(VerbsCommon.Get, "PnPTenantAppCatalogUrl")]
99
[CmdletHelp(@"Retrieves the url of the tenant scoped app catalog",
1010
Category = CmdletHelpCategory.TenantAdmin,
1111
SupportedPlatform = CmdletSupportedPlatform.Online)]

Commands/Admin/GetTenantSite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace PnP.PowerShell.Commands
1313
{
14-
[Cmdlet(VerbsCommon.Get, "PnPTenantSite", SupportsShouldProcess = true)]
14+
[Cmdlet(VerbsCommon.Get, "PnPTenantSite")]
1515
[CmdletHelp(@"Retrieve site information.", "Use this cmdlet to retrieve site information from your tenant administration.",
1616
Category = CmdletHelpCategory.TenantAdmin,
1717
SupportedPlatform = CmdletSupportedPlatform.SP2016 | CmdletSupportedPlatform.SP2019 | CmdletSupportedPlatform.Online,

Commands/Admin/SetTenant.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,12 @@ The only two characters that can be managed at this time are the # and % charact
405405

406406
[Parameter(Mandatory = false, HelpMessage = "Boolean indicating if Azure Information Protection (AIP) should be enabled on the tenant. For more information, see https://docs.microsoft.com/microsoft-365/compliance/sensitivity-labels-sharepoint-onedrive-files#use-powershell-to-enable-support-for-sensitivity-labels")]
407407
public bool? EnableAIPIntegration;
408+
409+
[Parameter(Mandatory = false)]
410+
public bool? DisableCustomAppAuthentication;
411+
412+
[Parameter(Mandatory = false, HelpMessage = "Boolean indicating if a news digest should automatically be sent to end users to inform them about news that they may have missed. On by default. For more information, see https://aka.ms/autonewsdigest")]
413+
public bool? EnableAutoNewsDigest;
408414

409415
protected override void ExecuteCmdlet()
410416
{
@@ -972,6 +978,16 @@ protected override void ExecuteCmdlet()
972978
Tenant.EnableAIPIntegration = EnableAIPIntegration.Value;
973979
isDirty = true;
974980
}
981+
if (DisableCustomAppAuthentication.HasValue)
982+
{
983+
Tenant.DisableCustomAppAuthentication = DisableCustomAppAuthentication.Value;
984+
isDirty = true;
985+
}
986+
if (EnableAutoNewsDigest.HasValue)
987+
{
988+
Tenant.EnableAutoNewsDigest = EnableAutoNewsDigest.Value;
989+
isDirty = true;
990+
}
975991
if (isDirty)
976992
{
977993
ClientContext.ExecuteQueryRetry();

Commands/Admin/SetTenantSyncClientRestriction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class SetTenantSyncClientRestriction : PnPAdminCmdlet
4141
[Parameter(Mandatory = false, HelpMessage = @"Blocks certain file types from syncing with the new sync client (OneDrive.exe). Provide as one string separating the extensions using a semicolon (;). I.e. ""docx;pptx""")]
4242
public List<string> ExcludedFileExtensions;
4343

44-
[Parameter(Mandatory = false, HelpMessage = "Controls whether or not a tenant's users can sync OneDrive for Business libraries with the old OneDrive for Business sync client. The valid values are OptOut, HardOptin, and SoftOptin.")]
44+
[Parameter(Mandatory = false, HelpMessage = "Controls whether or not a tenant's users can sync OneDrive for Business libraries with the old OneDrive for Business sync client. The valid values are OptOut, HardOptin, and SoftOptin. GrooveBlockOption is planned to be deprecated. Please refrain from using the parameter.")]
4545
public Enums.GrooveBlockOption GrooveBlockOption;
4646

4747
protected override void ExecuteCmdlet()
@@ -90,4 +90,4 @@ protected override void ExecuteCmdlet()
9090
}
9191
}
9292
}
93-
#endif
93+
#endif

Commands/Base/ConnectOnline.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,11 @@ protected override void ProcessRecord()
651651
/// </summary>
652652
protected void Connect()
653653
{
654+
if (!string.IsNullOrEmpty(Url) && Url.EndsWith("/"))
655+
{
656+
Url = Url.Substring(0, Url.Length - 1);
657+
}
658+
654659
PnPConnection connection = null;
655660

656661
var latestVersion = PnPConnectionHelper.GetLatestVersion();

Commands/Base/InitializePowerShellAuthentication.cs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -250,24 +250,16 @@ protected override void ProcessRecord()
250250
record.Properties.Add(new PSVariableProperty(new PSVariable("AzureAppId", azureApp.AppId)));
251251

252252
var waitTime = 60;
253-
Host.UI.Write(ConsoleColor.Yellow, Host.UI.RawUI.BackgroundColor, $"Waiting {waitTime} seconds to launch consent flow in a browser window. This wait is required to make sure that Azure AD is able to initialize all required artifacts.");
254-
255-
Console.TreatControlCAsInput = true;
253+
Host.UI.Write(ConsoleColor.Yellow, Host.UI.RawUI.BackgroundColor, $"Waiting {waitTime} seconds to start the consent flow in a browser window. This wait is required to make sure that Azure AD is able to initialize all required artifacts.");
256254

257255
for (var i = 0; i < waitTime; i++)
258256
{
259257
Host.UI.Write(ConsoleColor.Yellow, Host.UI.RawUI.BackgroundColor, ".");
260258
System.Threading.Thread.Sleep(1000);
261259

262-
// Check if CTRL+C has been pressed and if so, abort the wait
263-
if (Host.UI.RawUI.KeyAvailable)
260+
if (Stopping)
264261
{
265-
var key = Host.UI.RawUI.ReadKey(ReadKeyOptions.AllowCtrlC | ReadKeyOptions.NoEcho | ReadKeyOptions.IncludeKeyUp);
266-
if ((key.ControlKeyState.HasFlag(ControlKeyStates.LeftCtrlPressed) || key.ControlKeyState.HasFlag(ControlKeyStates.RightCtrlPressed)) && key.VirtualKeyCode == 67)
267-
{
268-
269-
break;
270-
}
262+
break;
271263
}
272264
}
273265
Host.UI.WriteLine();

0 commit comments

Comments
 (0)