After installing VS 2022-Enterprise, I noticed VSTelem and VSTelem.Out folders under %LOCALAPPDATA%\Temp. This was not happening with VS 2019. How can I disable the Telemetry feature?
-
5I'm not against user behavior research like this, but these guys think that workstation SSD's are free? On my computer it eats 2.4GB (%LOCALAPPDATA%\Temp\VSTelem folder).– KamilSep 7, 2022 at 20:29
-
Choosing prime real estate to put that data just adds insult to injury in my opinion.– VectorizerSep 8, 2022 at 12:34
3 Answers
Solved: Help->Privacy->Privacy Settings and opt-out!
-
There is official documentation for it. However it is worth noting, that Microsoft will collect data as part of the VS suite of applications and through Windows telemetry regarding the operation of the IDE. Mar 17 at 14:06
-
1Well, not through conventional means, at least. Any connection can be blocked with sufficient motivation.– tsilbNov 9, 2022 at 1:14
-
1Highly recommend using Windows Firewall Control (it's a GUI for the integrated Windows Firewall) to block certain VS processes (some solely for collecting data) completely. Can always temporarily be disabled Jan 5 at 7:05
-
@risingballs That's a very good recommendation. Could you please provide a list of processes to be blocked? Jan 5 at 16:43
-
2There is a wealth of processes that ship with recent VS versions like ServiceHub.*.exe (e.g. ServiceHub.DataWarehouseHost.exe). You find these in (e.g.) C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\ServiceHub. Other processes include VSDiagnostics.exe (DiagnosticsHub folder), and vctip.exe which is executed often when compiling, identified as "Microsoft VC compiler and tools experience improvement data uploader". All in all there is a lot of activity and I highly suggest using Windows Firewall Control in popup mode to see what happens, for each individual process, and when. Jan 7 at 1:56
Given how I consider all this telemetry and data collection as a form of bullying (we are paying for the product and telemetry is turning us into beta testers while data collection is further monetizing us), I have developed a different approach to disabling it in a couple of easy steps.
Get yourself a router / firewall device which supports REGEX in static DNS configuration (Mikrotik does for example).
Add the following regular expressions as DNS host names:
# Microsoft (Windows, Browser) v10c?\.(events|vortex-win)\.data\.microsoft\.com ((um|km)?watsonc?|oca)(\.telemetry)?\.microsoft\.com # Visual Studio .*\.services\.visualstudio\.com # NVIDIA (activation|events|telemetry)\.gfe\.nvidia\.com
Set those entries to resolve to
NXDOMAIN
and set a longTTL
such as 365 days.Block direct outbound connections on port 53 UDP/TCP for your LAN subnet except for your router / firewall IP (easiest way to do that is to perform DNAT for any such request to your router / firewall DNS server).
Block direct outbound DNS over HTTPS connections to popular services (cloudflare, google, opendns, etc) for your LAN subnet except for your router / firewall IP in order to force clients to fall back to your router / firewall DNS. You can of course use DoH on the router itself if you so desire.
Problem solved forever for all devices on your network.