How to disable Visual Studio extension automatic updates in an unattended mode?

bahrep picture bahrep · Oct 24, 2018 · Viewed 10.2k times · Source

I can disable automatic extension update for a particular extension via the Extensions and Updates manager in Visual Studio. But what should I do when I want to disable automatic updates for extension FOO on all computers of my team in an unattended mode?

I want an option to use AD GPO or modify Windows Registry to make a specific Visual Studio extension stop receiving automatic updates. Is this even possible now?

Answer

NeoBeum picture NeoBeum · Jul 10, 2019

I stop VS from checking updates altogether.

For VS2019:

vsregedit.exe set "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" HKCU ExtensionManager AutomaticallyCheckForUpdates2Override dword 0

For VS2017:

vsregedit.exe set "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise" HKCU ExtensionManager AutomaticallyCheckForUpdates2Override dword 0