From e86533c7e1db0b65aa84f601e483fd64fe1b2724 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Sun, 5 May 2024 08:41:32 +0200 Subject: [PATCH] Tweak Adobe Debloater -disable Adobe Desktop Service by getting ownership and renaming it. - added AGMService service - disable AGMService and AGSService entirely --- config/tweaks.json | 142 ++++++++++++++++++++++++++++----------------- 1 file changed, 89 insertions(+), 53 deletions(-) diff --git a/config/tweaks.json b/config/tweaks.json index 28450586..526484db 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -82,11 +82,96 @@ "Description": "Sets Adobe Services to Manual & disable acrobat auto-updates", "category": "Essential Tweaks", "panel": "1", - "Order": "a009_", + "Order": "a009_", + "InvokeScript": [ + " + function CCStopper { + $path = \"C:\\Program Files (x86)\\Common Files\\Adobe\\Adobe Desktop Common\\ADS\\Adobe Desktop Service.exe\" + Takeown /f $path + $acl = Get-Acl $path + $acl.SetOwner([System.Security.Principal.NTAccount]\"Administrators\") + $acl | Set-Acl $path + + Rename-Item -Path $path -NewName \"Adobe Desktop Service.exe.old\" -Force + } + + function AcrobatUpdates { + # Editing Acrobat Updates. The last folder before the key is dynamic, therefore using a script. + # Possible Values for the edited key: + # 0 = Do not download or install updates automatically + # 2 = Automatically download updates but let the user choose when to install them + # 3 = Automatically download and install updates (default value) + # 4 = Notify the user when an update is available but don't download or install it automatically + + $rootPath = \"HKLM:\\SOFTWARE\\WOW6432Node\\Adobe\\Adobe ARM\\Legacy\\Acrobat\" + + # Get all subkeys under the specified root path + $subKeys = Get-ChildItem -Path $rootPath | Where-Object { $_.PSChildName -like \"{*}\" } + + # Loop through each subkey + foreach ($subKey in $subKeys) { + # Get the full registry path + $fullPath = Join-Path -Path $rootPath -ChildPath $subKey.PSChildName + try { + Set-ItemProperty -Path $fullPath -Name Mode -Value 4 + } catch { + Write-Host \"Registry Key for changing Acrobat Updates does not exist in $fullPath\" + } + } + } + + CCStopper + AcrobatUpdates + " + ], + "UndoScript": [ + " + function RestoreCCService { + $originalPath = \"C:\\Program Files (x86)\\Common Files\\Adobe\\Adobe Desktop Common\\ADS\\Adobe Desktop Service.exe.old\" + $newPath = \"C:\\Program Files (x86)\\Common Files\\Adobe\\Adobe Desktop Common\\ADS\\Adobe Desktop Service.exe\" + + if (Test-Path -Path $originalPath) { + Rename-Item -Path $originalPath -NewName \"Adobe Desktop Service.exe\" -Force + Write-Host \"Adobe Desktop Service has been restored.\" + } else { + Write-Host \"Backup file does not exist. No changes were made.\" + } + } + + function AcrobatUpdates { + # Default Value: + # 3 = Automatically download and install updates + + $rootPath = \"HKLM:\\SOFTWARE\\WOW6432Node\\Adobe\\Adobe ARM\\Legacy\\Acrobat\" + + # Get all subkeys under the specified root path + $subKeys = Get-ChildItem -Path $rootPath | Where-Object { $_.PSChildName -like \"{*}\" } + + # Loop through each subkey + foreach ($subKey in $subKeys) { + # Get the full registry path + $fullPath = Join-Path -Path $rootPath -ChildPath $subKey.PSChildName + try { + Set-ItemProperty -Path $fullPath -Name Mode -Value 3 + } catch { + Write-Host \"Registry Key for changing Acrobat Updates does not exist in $fullPath\" + } + } + } + + RestoreCCService + AcrobatUpdates + " + ], "service": [ { "Name": "AGSService", - "StartupType": "Manual", + "StartupType": "Disabled", + "OriginalType": "Automatic" + }, + { + "Name": "AGMService", + "StartupType": "Disabled", "OriginalType": "Automatic" }, { @@ -101,7 +186,7 @@ }, { "Name": "Adobe Genuine Monitor Service", - "StartupType": "Manual", + "StartupType": "Disabled", "OriginalType": "Automatic" }, { @@ -129,56 +214,7 @@ "StartupType": "Manual", "OriginalType": "Automatic" } - ], - - "InvokeScript": [ - " - # Editing Acrobat Updates. The last folder before the key is dynamic, therefore using a script. - # Possible Values for the edited key: - # 0 = Do not download or install updates automatically - # 2 = Automatically download updates but let the user choose when to install them - # 3 = Automatically download and install updates (default value) - # 4 = Notify the user when an update is available but don't download or install it automatically - - $rootPath = \"HKLM:\\SOFTWARE\\WOW6432Node\\Adobe\\Adobe ARM\\Legacy\\Acrobat\" - - # Get all subkeys under the specified root path - $subKeys = Get-ChildItem -Path $rootPath | Where-Object { $_.PSChildName -like \"{*}\" } - - # Loop through each subkey - foreach ($subKey in $subKeys) { - # Get the full registry path - $fullPath = Join-Path -Path $rootPath -ChildPath $subKey.PSChildName - try { - Set-ItemProperty -Path $fullPath -Name Mode -Value 4 - } catch { - Write-Host \"Registry Key for changing Acrobat Updates does not exist in $fullPath\" - } - } - " - ], - "UndoScript": [ - " - # Default Value: - # 3 = Automatically download and install updates - - $rootPath = \"HKLM:\\SOFTWARE\\WOW6432Node\\Adobe\\Adobe ARM\\Legacy\\Acrobat\" - - # Get all subkeys under the specified root path - $subKeys = Get-ChildItem -Path $rootPath | Where-Object { $_.PSChildName -like \"{*}\" } - - # Loop through each subkey - foreach ($subKey in $subKeys) { - # Get the full registry path - $fullPath = Join-Path -Path $rootPath -ChildPath $subKey.PSChildName - try { - Set-ItemProperty -Path $fullPath -Name Mode -Value 3 - } catch { - Write-Host \"Registry Key for changing Acrobat Updates does not exist in $fullPath\" - } - } - " - ] + ] }, "WPFTweaksLoc": { "Content": "Disable Location Tracking",