Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDPR consent problem: PowerShell 7.4.2 installer forcefully enables telemetry on upgrade even if previous version was installed with telemetry disabled #21467

Open
5 tasks done
R-Adrian opened this issue Apr 13, 2024 · 1 comment
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. WG-Engine core PowerShell engine, interpreter, and runtime

Comments

@R-Adrian
Copy link

R-Adrian commented Apr 13, 2024

Prerequisites

Steps to reproduce

  • if an existing version of PowerShell 7 is installed then uninstall it from control panel.
  • make sure there is no C:\Program Files\PowerShell\7 folder left
  • download and install the immediately previous version
    (e.g. 7.4.1 in our case here https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/PowerShell-7.4.1-win-x64.msi )
  • install that version. When installing make sure to enable the checkbox for opt out, to disable telemetry.
  • start pwsh, check the output of the $env:POWERSHELL_TELEMETRY_OPTOUT environment variable
    (it shows 1 in my case)

for testing silent / unattended upgrade - make sure pwsh 7 is not running, start an elevated cmd.exe command prompt, run winget upgrade Microsoft.PowerShell - and update pwsh to version 7.4.2 ( https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/PowerShell-7.4.2-win-x64.msi )

for testing interactive upgrade: run the MSI installer manually - the same result can be observed - the telemetry preference is reset to defaut (i.e. the checkbox is disabled in the MSI installer running an upgrade).

  • after the upgrade start pwsh and check the output of that environment variable again - after the winget silent/unattended update it shows no optout (i.e. the telemetry is now forcefully enabled again)

Expected behavior

telemetry remains disabled

Actual behavior

telemetry is forcefully enabled for either interactive updates (the opt out preference is not used by the MSI installer) or silent / unattended updates

Error details

installer issue

Environment data

(MSI installer issue - env not really relevant)

Visuals

PowerShell telemetry reference:
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_telemetry?view=powershell-7.4

PowerShell 7.4.1 manual installation of the MSI file, with telemetry disabled:
PowerShell 7.4.1 installation with telemetry disabled

checking before upgrade...
pwsh_741_before_upgrade

and running winget upgrade Microsoft.PowerShell (using the old Windows PowerShell instead of cmd.exe as a console window)

pwsh_742_winget_upgrade_

... PowerShell 7 telemetry optout is now disabled and the variable is not defined anymore - this means that telemetry was forcefully enabled during the upgrade.

pwsh_742_after_upgrade

@R-Adrian R-Adrian added the Needs-Triage The issue is new and needs to be triaged by a work group. label Apr 13, 2024
@iSazonov iSazonov added the WG-Engine core PowerShell engine, interpreter, and runtime label Apr 13, 2024
@R-Adrian R-Adrian changed the title GDPR consent violation: PowerShell 7.4.2 installer forcefully enables telemetry on upgrade even if previous version was installed with telemetry disabled GDPR consent problem: PowerShell 7.4.2 installer forcefully enables telemetry on upgrade even if previous version was installed with telemetry disabled Apr 13, 2024
@StevenBucher98
Copy link
Collaborator

StevenBucher98 commented Apr 15, 2024

Additional context and information in this issue: https://github.com/microsoft/winget-pkgs/issues/

GitHub
The Microsoft community Windows Package Manager manifest repository - Issues · microsoft/winget-pkgs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. WG-Engine core PowerShell engine, interpreter, and runtime
Projects
None yet
Development

No branches or pull requests

3 participants