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

Commit 14024a6

Browse files
committed
Updated notification message
1 parent dea9aed commit 14024a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Commands/Base/SPOnlineConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ internal void InitializeTelemetry(ClientContext context, PSHost host)
202202
var choices = new System.Collections.ObjectModel.Collection<ChoiceDescription>();
203203
choices.Add(new ChoiceDescription("&Allow", "You will allow us to transmit anonymous data"));
204204
choices.Add(new ChoiceDescription("&Do not allow", "You do not allow us to transmit anonymous data"));
205-
if (host.UI.PromptForChoice("Telemetry", "Please allow us to transmit anonymous metrics in order to make PnP PowerShell even better. We transmit the version of PnP PowerShell you are using, the version of SharePoint you are connecting to and which cmdlet you are executing. We do not transmit tenant/server URLs nor parameter values and content.", choices, 0) == 0)
205+
if (host.UI.PromptForChoice("PnP PowerShell Telemetry", $"Please allow us to transmit anonymous metrics in order to make PnP PowerShell even better.{Environment.NewLine}We transmit the version of PnP PowerShell you are using, the version of SharePoint you are connecting to and which cmdlet you are executing. We do not transmit tenant/server URLs nor parameter values and content.{Environment.NewLine}{Environment.NewLine}Your decision will be recorded in a file a called .pnppowershelltelemetry which will be located in your profile folder ({userProfile}).{Environment.NewLine}{Environment.NewLine}You can choose to disable and/or enable telemetry at a later stage by using Enable-PnPPowerShellTelemetry or Disable-PnPPowerShellTelemetry. Get-PnPPowerShellTelemetryEnabled will provide you with your current setting.", choices, 0) == 0)
206206
{
207207
enableTelemetry = true;
208208
System.IO.File.WriteAllText(telemetryFile, "allow");

0 commit comments

Comments
 (0)