PerfWatson2 is a part of Microsoft Visual Studio IDE and it's not some kind of malware. Microsoft Visual Studio PerfWatson tracks the responsiveness of the Visual Studio process and collects diagnostic information when unresponsive.
The PerfWatson2.exe file is located in a subfolder of "C:\Program Files (x86)" (e.g. C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\).
For Visual Studio 2022 and the latest version of Visual Studio 2019:
Note: You can't opt out in pre-release versions by this mechanism.
For older version of Visual Studio
See Visual Studio Customer Experience Improvement Program for the official Microsoft instructions.
This change writes to the registry. See then next answer for fixing directly in the registry.
You can do it via the registry. For a 64 bit OS, the key is at
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSCommon\15.0\SQM
And for a 32 bit OS, at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSCommon\15.0\SQM
For Group Policy management (settings from IT department), it's
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\VisualStudio\SQM
The key name is OptIn
(a DWORD
), and you need to set it to 0 to disable.
Source: https://docs.microsoft.com/en-us/visualstudio/ide/visual-studio-experience-improvement-program
(On a 64 bit OS machine not managed by a group policy), fire up an admin command prompt and just
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSCommon\15.0\SQM /v OptIn /t REG_DWORD /d 0 /f
You may have to close and restart all visual studio related processes (or reboot) for the change to bite.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With