{"id":6901,"date":"2023-05-24T09:05:15","date_gmt":"2023-05-24T09:05:15","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=6901"},"modified":"2023-06-06T23:22:34","modified_gmt":"2023-06-06T23:22:34","slug":"intune-proactive-remediation-of-how-to-set-visual-studio-to-auto-update","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-of-how-to-set-visual-studio-to-auto-update","title":{"rendered":"Intune Proactive Remediation of how to set Visual Studio to Auto Update"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>**Update**<\/p>\n\n\n\n<p>Go figure they just released an Intune update ( 2305 )  to do this natively ! <\/p>\n\n\n\n<p><a href=\"https:\/\/www.anoopcnair.com\/visual-studio-install-update-settings-intune\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure Visual Studio Install And Update Settings Using Intune HTMD Blog (anoopcnair.com)<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">#Check\n#Function to Check Registry Value \n\nFunction Test-RegistryValue ($regkey, $name, $value) {\n     if ((Get-ItemProperty -Path $regkey -Name $name -ErrorAction Ignore).$name -eq $value) {\n\t\t $true\n     } else {\n         $false\n     }\n }\n\n#Is Visual Studio Installed?\n\n\nif (Test-Path 'HKLM:\\\\SOFTWARE\\\\WOW6432Node\\\\Microsoft\\\\VisualStudio\\Setup'){\n\n#check Update Settings\nif (Test-RegistryValue 'HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\VisualStudio' 'AdministratorUpdatesEnabled' '2'){ Exit 0}else{ Exit 1}\n\n\n}\nelse\n{  Exit 0 }<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">#fix Code\n\n\n\n#Is Visual Studio Installed?\n\nif (Test-Path 'HKLM:\\\\SOFTWARE\\\\WOW6432Node\\\\Microsoft\\\\VisualStudio\\Setup'){\n\nNew-ItemProperty -Path \"HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\VisualStudio\\Setup\" -Name \"AdministratorUpdatesEnabled\" -Value 2 -PropertyType DWORD -Force \nNew-ItemProperty -Path \"HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\VisualStudio\\Setup\" -Name \"AdministratorUpdatesOptOut\" -Value 0 -PropertyType DWORD -Force \nNew-ItemProperty -Path \"HKLM:\\Software\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\" -Name \"AllowMUUpdateService\" -Value 1 -PropertyType DWORD -Force \n\n}\n\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>**Update** Go figure they just released an Intune update ( 2305 ) to do this natively ! Configure Visual Studio Install And Update Settings Using Intune HTMD [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4219,2837,4216,4217],"class_list":["post-6901","post","type-post","status-publish","format-standard","hentry","category-research","tag-auto-update","tag-intune","tag-proactive","tag-remediation"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=6901"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6901\/revisions"}],"predecessor-version":[{"id":6953,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6901\/revisions\/6953"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=6901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=6901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=6901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}