Private/Write-TelemetryPrompt.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function Write-TelemetryPrompt
{
    $telemetry_message = @'
Please consider enabling telemetry to help us improve MSOnlineExt!
 
Join with the following command:
 
Set-MSOnlineExtTelemetryOption -Participate 'Yes'
 
To disable this warning and set your preference, use the following command and then reload the module:
 
Set-MSOnlineExtTelemetryOption -Participate 'No'
 
For more information run the command:
 
Get-Help about_MSOnlineExt_Telemetry
'@


    Microsoft.PowerShell.Utility\Write-Warning -Message $telemetry_message
}