This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Describes the telemetry collected in PowerShell and how to opt-out.
PowerShell sends basic telemetry data to Microsoft using Application Insights.This data allows us to better understand the environments using PowerShell andenables us to prioritize new features and fixes. PowerShell anonymizes thetelemetry information before sending.
PowerShell sends the following information at startup:
Startup telemetry data is only collected when starting thepwsh
executable.This information isn't sent if the PowerShell engine is embedded in some otherhost application.
Note
Application Insights uses the hosts IP Address to determine the geographiclocation. The IP Address is never included in the telemetry data or stored inthe database. For more information, seeGeolocation and IP address handling.
PowerShell sends the following information during the session:
PowerShell.Create()
APICrescendoBuilt
tag$PSNativeCommandUseErrorActionPreference
preference variable,eithertrue
,false
orunset
Completion
andgeneral
. If the nameof the subsystem name not one of those, thenanonymous
is submitted as thename.CommandNotFound
feedback suggestions provided.PowerShellUnsafeAssemblyLoad
usage and whether the load wassuccessful or not.PowerShell sends this information periodically during the lifetime of thesession for all host applications.
To opt-out of this telemetry, set the environment variable$Env:POWERSHELL_TELEMETRY_OPTOUT
totrue
,yes
, or1
. For thisenvironment variable to have effect, it must be set before starting thePowerShell process. For more information, seeabout_Environment_Variables.
The$Env:POWERSHELL_DISTRIBUTION_CHANNEL
environment variable is set by theinstaller packages to record the method and source of installation forPowerShell. Since this information is included in the telemetry data sent toMicrosoft, users shouldn't change this value.
For more information about these environment variables, seeabout_Environment_Variables.
For more information about Microsoft's statement on privacy, seeMicrosoft Privacy Statement
Was this page helpful?
Was this page helpful?