mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-18 10:47:44 -06:00
Tweak Adobe Debloater
-disable Adobe Desktop Service by getting ownership and renaming it. - added AGMService service - disable AGMService and AGSService entirely
This commit is contained in:
parent
026ebc411a
commit
e86533c7e1
@ -83,10 +83,95 @@
|
|||||||
"category": "Essential Tweaks",
|
"category": "Essential Tweaks",
|
||||||
"panel": "1",
|
"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": [
|
"service": [
|
||||||
{
|
{
|
||||||
"Name": "AGSService",
|
"Name": "AGSService",
|
||||||
"StartupType": "Manual",
|
"StartupType": "Disabled",
|
||||||
|
"OriginalType": "Automatic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "AGMService",
|
||||||
|
"StartupType": "Disabled",
|
||||||
"OriginalType": "Automatic"
|
"OriginalType": "Automatic"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -101,7 +186,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name": "Adobe Genuine Monitor Service",
|
"Name": "Adobe Genuine Monitor Service",
|
||||||
"StartupType": "Manual",
|
"StartupType": "Disabled",
|
||||||
"OriginalType": "Automatic"
|
"OriginalType": "Automatic"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -129,55 +214,6 @@
|
|||||||
"StartupType": "Manual",
|
"StartupType": "Manual",
|
||||||
"OriginalType": "Automatic"
|
"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": {
|
"WPFTweaksLoc": {
|
||||||
|
Loading…
Reference in New Issue
Block a user