4 ms·
Set 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
by jlgaddis 7y ago
Set 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.