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). – Kamil Sep 07 '22 at 20:29
-
Choosing prime real estate to put that data just adds insult to injury in my opinion. – Vectorizer Sep 08 '22 at 12:34
3 Answers
Solved: Help->Privacy->Privacy Settings and opt-out!

- 1,076
- 9
- 24
-
There is [official documentation](https://learn.microsoft.com/en-us/visualstudio/ide/visual-studio-experience-improvement-program?view=vs-2022) 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. – Balázs Börcsök Mar 17 '23 at 14:06

- 624
- 3
- 16
-
1Well, not through conventional means, at least. Any connection can be blocked with sufficient motivation. – tsilb Nov 09 '22 at 01: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 – risingballs Jan 05 '23 at 07:05
-
@risingballs That's a very good recommendation. Could you please provide a list of processes to be blocked? – Vectorizer Jan 05 '23 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. – risingballs Jan 07 '23 at 01: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.

- 1,017
- 10
- 17