3 ms·
How often do you need to reapply this?
by fartcannon 7y ago
How often do you need to reapply this?
- jlgaddis 7y agoSet it in your environment / shell startup files (.bash_profile, for example) export POWERSHELL_TELEMETRY_OPTOUT=1 and, in theory, you should be good to go (unless/until Microsoft decides to change things up). --- After logging out and logging in again, you can verify this has been set properly by simply running echo $POWERSHELL_TELEMETRY_OPTOUT in your shell (it should simply output "1").
- hashmymustache 7y agoFrom the Microsoft website: “The telemetry reporting can be disabled by setting the environment variable POWERSHELL_TELEMETRY_OPTOUT to true, yes, or 1. This should not be done in your profile, as PowerShell reads this value from your system before executing your profile.”
- ygra 7y agoIt's not supposed to go into the PowerShell $profile; .bash_profile which later starts pwsh should be fine.