{"id":7353,"date":"2023-10-04T06:44:27","date_gmt":"2023-10-04T06:44:27","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=7353"},"modified":"2024-02-15T00:05:12","modified_gmt":"2024-02-15T00:05:12","slug":"intune-proactive-remediations-to-disable-flash-and-java-enabled-in-adobe-reader-dc-and-acrobat-dc-11","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediations-to-disable-flash-and-java-enabled-in-adobe-reader-dc-and-acrobat-dc-11","title":{"rendered":"Intune Proactive Remediations to disable Flash and Java enabled in Adobe Reader DC and Acrobat DC \\ 11"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">#check for registry keys\n$adobereader = Test-Path -Path 'HKLM:SOFTWARE\\Policies\\Adobe\\Acrobat Reader\\DC\\FeatureLockDown'\n$adobedc = Test-Path -Path 'HKLM:SOFTWARE\\Policies\\Adobe\\Adobe Acrobat\\DC\\FeatureLockDown'\n$adobe11 = Test-Path -Path 'HKLM:SOFTWARE\\Policies\\Adobe\\Adobe Acrobat\\11.0\\FeatureLockDown'\n\n\n#if neither exists stop script and return success\nIf(!($adobereader -or $adobedc -or $adobe11)){\n    Write-Host \"Neither Program Detected\"\n    Exit 0\n}\n\n#check for correct reg vaules\nIf($adobereader){\n    $adobereaderflash = (Get-ItemProperty -Path \"HKLM:SOFTWARE\\Policies\\Adobe\\Acrobat Reader\\DC\\FeatureLockDown\").bEnableFlash\n    $adobereaderjs = (Get-ItemProperty -Path \"HKLM:SOFTWARE\\Policies\\Adobe\\Acrobat Reader\\DC\\FeatureLockDown\").bDisableJavaScript\n\n    If(($adobereaderflash -eq 0) -and ($adobereaderjs -eq 1)){\n        $ResultReader = \"True\"\n    }\n    Else {$ResultReader = \"False\"}\n}\n\nIf($adobedc){\n    $adobedcjs = (Get-ItemProperty -Path \"HKLM:SOFTWARE\\Policies\\Adobe\\Adobe Acrobat\\DC\\FeatureLockDown\").bDisableJavaScript\n    If($adobedcjs -eq 1){\n        $ResultAcrobat = \"True\"\n    }\n    Else {$ResultAcrobat = \"False\"}\n}\n\nIf($adobe11){\n    $adobe11js = (Get-ItemProperty -Path \"HKLM:SOFTWARE\\Policies\\Adobe\\Adobe Acrobat\\11.0\\FeatureLockDown\").bDisableJavaScript\n\t$adobe11flash = (Get-ItemProperty -Path \"HKLM:SOFTWARE\\Policies\\Adobe\\Acrobat Reader\\11.0\\FeatureLockDown\").bEnableFlash\n    If(($adobe11flash -eq 1) -and ($adobe11js -eq 1)){\n        $ResultAcrobat11 = \"True\"\n    }\n    Else {$ResultAcrobat11 = \"False\"}\n}\n\n#check results and give proper exit code\nIf (($ResultAcrobat -eq \"True\") -or ($ResultReader -eq \"True\") -or ($ResultAcrobat11 -eq \"True\")){\n    Write-Host \"Registry Remediations Detected\"\n    Exit 0\n}\nElse {\n    Write-Host  \"Registry Remediations not found!\"\n    Exit 1\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">#check for reg keys for Adobe Reader and DC\n$adobereader = Test-Path -Path 'HKLM:SOFTWARE\\Policies\\Adobe\\Acrobat Reader\\DC\\FeatureLockDown'\n$adobedc = Test-Path -Path 'HKLM:SOFTWARE\\Policies\\Adobe\\Adobe Acrobat\\DC\\FeatureLockDown'\n$adobe11 = Test-Path -Path 'HKLM:SOFTWARE\\Policies\\Adobe\\Adobe Acrobat\\11.0\\FeatureLockDown'\n\n\nIf(!($adobereader -or $adobedc -or $adobe11)){\n    Write-Output \"Neither Program Detected\"\n    Exit\n}\n#If keys exist add reg values\nIf($adobereader){\n    New-ItemProperty \"HKLM:SOFTWARE\\Policies\\Adobe\\Acrobat Reader\\DC\\FeatureLockDown\" -Name \"bEnableFlash\" -Value '0' -PropertyType DWORD -Force\n    New-ItemProperty \"HKLM:SOFTWARE\\Policies\\Adobe\\Acrobat Reader\\DC\\FeatureLockDown\" -Name \"bDisableJavaScript\" -Value '1' -PropertyType DWORD -Force\n}\n\nIf($adobe11){\n    New-ItemProperty \"HKLM:SOFTWARE\\Policies\\Adobe\\Adobe Acrobat\\11.0\\FeatureLockDown\" -Name \"bEnableFlash\" -Value '0' -PropertyType DWORD -Force\n    New-ItemProperty \"HKLM:SOFTWARE\\Policies\\Adobe\\Adobe Acrobat\\11.0\\FeatureLockDown\" -Name \"bDisableJavaScript\" -Value '1' -PropertyType DWORD -Force\n}\n\nIf($adobedc){\n    New-ItemProperty \"HKLM:SOFTWARE\\Policies\\Adobe\\Adobe Acrobat\\DC\\FeatureLockDown\" -Name \"bDisableJavaScript\" -Value '1' -PropertyType DWORD -Force\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2837,4266],"class_list":["post-7353","post","type-post","status-publish","format-standard","hentry","category-research","tag-intune","tag-proactive-remediations"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7353","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=7353"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7353\/revisions"}],"predecessor-version":[{"id":7668,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7353\/revisions\/7668"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=7353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=7353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=7353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}