{"id":249465,"date":"2024-06-19T10:30:59","date_gmt":"2024-06-19T17:30:59","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=249465"},"modified":"2024-08-07T12:52:11","modified_gmt":"2024-08-07T19:52:11","slug":"automatically-install-visual-studio-security-updates-through-microsoft-update","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/automatically-install-visual-studio-security-updates-through-microsoft-update\/","title":{"rendered":"Keep Visual Studio automatically updated and secure through Microsoft Update"},"content":{"rendered":"<p>Visual Studio is coming to Microsoft Update! We\u2019re pleased to announce that starting in August 2024, users of the Visual Studio Community edition who are <em>not<\/em> part of an organization managed by an IT administrator can choose to receive monthly Visual Studio security updates through the Microsoft Update (MU) system on &#8220;patch Tuesdays&#8221;.\u00a0 This new update option will be available for Visual Studio 2022, Visual Studio 2019, and Visual Studio 2017. It won\u2019t be available for the Preview channel.<\/p>\n<h2>How to enable Visual Studio updates through MU<\/h2>\n<p>Open Windows Settings and go to Windows Update &gt; Advanced Options. If you can toggle the option at the top \u201cReceive updates for other Microsoft products\u201d, then you control your machine\u2019s update policies and can choose to receive updates for Visual Studio Community and other Microsoft products from MU. We encourage you to enroll in this capability, as it\u2019s by far the easiest way to keep your Visual Studio Community updated and secure on a monthly cadence. If this option is greyed out and you can\u2019t toggle it, this new feature does not apply to your machine (even if it is turned on) because your administrator controls your update policies.<\/p>\n<p><figure id=\"attachment_249466\" aria-labelledby=\"figcaption_attachment_249466\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/ReceiveUpdatesOn.png\"><img decoding=\"async\" class=\"wp-image-249466 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/ReceiveUpdatesOn.png\" alt=\"Image ReceiveUpdatesOn\" width=\"417\" height=\"120\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/ReceiveUpdatesOn.png 417w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/ReceiveUpdatesOn-300x86.png 300w\" sizes=\"(max-width: 417px) 100vw, 417px\" \/><\/a><figcaption id=\"figcaption_attachment_249466\" class=\"wp-caption-text\">Figure 1 &#8211; Microsoft Update policy that is controlled by the user<\/figcaption><\/figure><\/p>\n<h2>How it works<\/h2>\n<p>As with other Visual Studio update methods, Visual Studio must be closed to apply these updates; MU will never force-close Visual Studio to apply the update. Updates delivered through Microsoft Update typically happen during machine idle time at night. Once you have opted into receiving Visual Studio Community updates through MU, just remember to periodically save your work and close Visual Studio in the evening to make sure that the update isn&#8217;t blocked. The next morning, you can verify in the Windows Update history that the latest Visual Studio security update was successfully applied. You can also initiate the update manually on demand by closing Visual Studio and pressing the Windows Update \u201cCheck for updates\u201d button.<\/p>\n<h2>Opting out of MU updates for Visual Studio<\/h2>\n<p>If you have chosen to receive updates for other Microsoft products, but you <strong>don\u2019t<\/strong> want to receive Visual Studio Community updates from MU, you can set this registry key value to opt out:\n[HKLM\\Software\\Microsoft\\VisualStudio\\Setup]\n&#8220;VSthroughMUUpdatesOptOut&#8221;=dword:1<\/p>\n<h2>Preview the experience through July 2024<\/h2>\n<p>You can try out this new experience through July 2024 in advance of it rolling out in August. To opt in to the preview, toggle \u201cReceive updates for other Microsoft products\u201d to On, and set this registry key value:\n[HKLM\\Software\\Microsoft\\VisualStudio\\Setup]\n&#8220;PreviewAutomaticUpdates&#8221;=dword:1<\/p>\n<p>Starting in August 2024, this registry key won\u2019t be necessary.<\/p>\n<p>During June and July, the updates will have a \u201c[Microsoft Update Preview]\u201d prefix in the title. These updates are the same update as if you manually installed it from within the Visual Studio IDE.<\/p>\n<p><figure id=\"attachment_249467\" aria-labelledby=\"figcaption_attachment_249467\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/WUUpdateHistory.png\"><img decoding=\"async\" class=\"wp-image-249467 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/WUUpdateHistory.png\" alt=\"Image WUUpdateHistory\" width=\"542\" height=\"324\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/WUUpdateHistory.png 542w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/06\/WUUpdateHistory-300x179.png 300w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/a><figcaption id=\"figcaption_attachment_249467\" class=\"wp-caption-text\">Figure 2 &#8211; Visual Studio security updates delivered during the Preview timeframe<\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<h2>Planned improvements<\/h2>\n<p>There are a few improvements to this experience that we\u2019re working on.<\/p>\n<ul>\n<li>If you rollback an update, you can temporarily disable Microsoft Update to prevent the update from automatically being re-applied. We\u2019re working on a reliable experience for this.<\/li>\n<li>We\u2019re working to improve the <a href=\"https:\/\/aka.ms\/vs\/setup\/errorcodes\">error messages<\/a> in the Windows Update UI, such as for the condition that the update was cancelled because Visual Studio was open.<\/li>\n<li>If you use the \u201cCheck for Updates\u201d button in the Windows Update UI, the progress bar will appear to be stuck at 0% until the update finishes, at which point it will immediately go to 100%. Visual Studio updates can take a while, so we ask for your patience while we improve the progress bar.<\/li>\n<li>We will enable the other Visual Studio editions to enroll in automatic updates through Microsoft Update when we add UI to improve the user experience.<\/li>\n<\/ul>\n<h2>What about IT Admin managed machines?<\/h2>\n<p>We\u2019ve delivered a rich set of managed update solutions via <a href=\"https:\/\/aka.ms\/vs\/admin\/updates\/au\/blog\">Visual Studio Administrator Updates<\/a>, which allow IT administrators in organizations to deploy monthly Visual Studio security updates to <strong>all<\/strong> Visual Studio editions, including Professional, Enterprise, and Build Tools, by using Windows Update for Business. Over 1500 organizations, <a href=\"https:\/\/www.microsoft.com\/insidetrack\/blog\/harnessing-first-party-patching-technology-to-drive-innovation-at-microsoft\/?\">including Microsoft<\/a>, currently use this solution to automatically install Visual Studio security updates on hundreds of thousands of machines each month.<\/p>\n<h2>Conclusion<\/h2>\n<p>If you\u2019re a Visual Studio Community user that controls your own machine\u2019s update policies, we hope you enroll in this solution to automatically receive and install updates for Visual Studio along with other Microsoft products. <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/automatic-updates\/599126\">We welcome your feedback on this Automatic Update experience<\/a>.<\/p>\n<p>We appreciate the time you\u2019ve spent reporting issues\/suggestions and hope you continue to give us feedback when using Visual Studio on what you like and what we can improve. Your feedback is critical to help us make Visual Studio the best tool it can be! You can share feedback with us via\u202f<a href=\"https:\/\/developercommunity.visualstudio.com\/home%22%20\/t%20%22_blank\">Developer Community<\/a>: report any bugs or issues via <a href=\"https:\/\/learn.microsoft.com\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?view=vs-2022\">report a problem<\/a>\u202fand\u202f<a href=\"https:\/\/developercommunity.microsoft.com\/VisualStudio\/suggest\">share your suggestions<\/a>\u202ffor new features or improvements to existing ones.<\/p>\n<p>Stay connected with the Visual Studio team by following us on <a href=\"https:\/\/www.youtube.com\/@visualstudio\">YouTube<\/a>, <a href=\"https:\/\/twitter.com\/VisualStudio\">Twitter<\/a>, <a href=\"https:\/\/www.linkedin.com\/showcase\/microsoft-visual-studio\/\">LinkedIn<\/a>, <a href=\"https:\/\/www.twitch.tv\/visualstudio\">Twitch<\/a> and on <a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/?view=vs-2022\">Microsoft Learn<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio is coming to Microsoft Update! We\u2019re pleased to announce that starting in August 2024, users of the Visual Studio Community edition who are not part of an organization managed by an IT administrator can choose to receive monthly Visual Studio security updates through the Microsoft Update (MU) system on &#8220;patch Tuesdays&#8221;.\u00a0 This new [&hellip;]<\/p>\n","protected":false},"author":584,"featured_media":249466,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[6952,6828,147],"class_list":["post-249465","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-microsoft-update","tag-security","tag-update"],"acf":[],"blog_post_summary":"<p>Visual Studio is coming to Microsoft Update! We\u2019re pleased to announce that starting in August 2024, users of the Visual Studio Community edition who are not part of an organization managed by an IT administrator can choose to receive monthly Visual Studio security updates through the Microsoft Update (MU) system on &#8220;patch Tuesdays&#8221;.\u00a0 This new [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/249465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/584"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=249465"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/249465\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/249466"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=249465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=249465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=249465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}