Compare commits
1 Commits
unrec
...
capability
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7054521a7 |
@@ -2572,89 +2572,60 @@ actions:
|
|||||||
code: reg add HKLM\SOFTWARE\Policies\Mozilla\Firefox /v DisableTelemetry /t REG_DWORD /d 1 /f
|
code: reg add HKLM\SOFTWARE\Policies\Mozilla\Firefox /v DisableTelemetry /t REG_DWORD /d 1 /f
|
||||||
revertCode: reg add HKLM\SOFTWARE\Policies\Mozilla\Firefox /v DisableTelemetry /t REG_DWORD /d 0 /f
|
revertCode: reg add HKLM\SOFTWARE\Policies\Mozilla\Firefox /v DisableTelemetry /t REG_DWORD /d 0 /f
|
||||||
-
|
-
|
||||||
category: Disable background update check services
|
name: Disable Google update service
|
||||||
# Reduces frequent requests to third party servers
|
recommend: standard
|
||||||
# Those request reveal information like machine information (such as software version and IP address) and usage behavior
|
docs:
|
||||||
# Once disabled, applications only check for updates and notify when they're being used
|
- https://websetnet.net/how-to-disable-google-chrome-automatic-updates-in-windows-10/
|
||||||
children:
|
- https://www.bleepingcomputer.com/startups/GoogleUpdate.exe-25791.html #gupdate
|
||||||
|
- https://www.bleepingcomputer.com/startups/GoogleUpdate.exe-26582.html #gupdatem
|
||||||
|
call:
|
||||||
-
|
-
|
||||||
name: Disable Google update service
|
function: RunInlineCode
|
||||||
recommend: strict
|
parameters:
|
||||||
docs:
|
code: |-
|
||||||
- https://websetnet.net/how-to-disable-google-chrome-automatic-updates-in-windows-10/
|
schtasks /change /disable /tn "GoogleUpdateTaskMachineCore"
|
||||||
- https://www.bleepingcomputer.com/startups/GoogleUpdate.exe-25791.html #gupdate
|
schtasks /change /disable /tn "GoogleUpdateTaskMachineUA"
|
||||||
- https://www.bleepingcomputer.com/startups/GoogleUpdate.exe-26582.html #gupdatem
|
revertCode: |-
|
||||||
call:
|
schtasks /Change /enable /tn "GoogleUpdateTaskMachineCore"
|
||||||
-
|
schtasks /change /enable /tn "GoogleUpdateTaskMachineUA"
|
||||||
function: RunInlineCode
|
|
||||||
parameters:
|
|
||||||
code: |-
|
|
||||||
schtasks /change /disable /tn "GoogleUpdateTaskMachineCore"
|
|
||||||
schtasks /change /disable /tn "GoogleUpdateTaskMachineUA"
|
|
||||||
revertCode: |-
|
|
||||||
schtasks /Change /enable /tn "GoogleUpdateTaskMachineCore"
|
|
||||||
schtasks /change /enable /tn "GoogleUpdateTaskMachineUA"
|
|
||||||
-
|
|
||||||
function: DisableService
|
|
||||||
parameters:
|
|
||||||
serviceName: gupdate # Check: (Get-Service -Name gupdate).StartType
|
|
||||||
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
|
||||||
-
|
|
||||||
function: DisableService
|
|
||||||
parameters:
|
|
||||||
serviceName: gupdatem # Check: (Get-Service -Name gupdatem).StartType
|
|
||||||
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
|
||||||
-
|
-
|
||||||
name: Disable Adobe Acrobat update service
|
function: DisableService
|
||||||
recommend: strict
|
parameters:
|
||||||
call:
|
serviceName: gupdate # Check: (Get-Service -Name gupdate).StartType
|
||||||
-
|
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
||||||
function: DisableService
|
|
||||||
parameters:
|
|
||||||
serviceName: AdobeARMservice # Check: (Get-Service -Name AdobeARMservice).StartType
|
|
||||||
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
|
||||||
-
|
|
||||||
function: DisableService
|
|
||||||
parameters:
|
|
||||||
serviceName: adobeupdateservice # Check: (Get-Service -Name adobeupdateservice).StartType
|
|
||||||
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
|
||||||
-
|
|
||||||
function: DisableService
|
|
||||||
parameters:
|
|
||||||
serviceName: adobeflashplayerupdatesvc # Check: (Get-Service -Name adobeflashplayerupdatesvc).StartType
|
|
||||||
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
|
||||||
-
|
|
||||||
function: RunInlineCode
|
|
||||||
parameters:
|
|
||||||
code: |-
|
|
||||||
schtasks /change /tn "Adobe Acrobat Update Task" /disable
|
|
||||||
schtasks /change /tn "Adobe Flash Player Updater" /disable
|
|
||||||
revertCode: |-
|
|
||||||
schtasks /change /tn "Adobe Acrobat Update Task" /enable
|
|
||||||
schtasks /change /tn "Adobe Flash Player Updater" /enable
|
|
||||||
-
|
-
|
||||||
name: Disable Dropbox auto update service
|
function: DisableService
|
||||||
recommend: strict
|
parameters:
|
||||||
call:
|
serviceName: gupdatem # Check: (Get-Service -Name gupdatem).StartType
|
||||||
-
|
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
||||||
function: DisableService
|
-
|
||||||
parameters:
|
name: Disable Adobe Acrobat update service
|
||||||
serviceName: dbupdate # Check: (Get-Service -Name 'dbupdate').StartType
|
recommend: standard
|
||||||
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
call:
|
||||||
-
|
-
|
||||||
function: DisableService
|
function: DisableService
|
||||||
parameters:
|
parameters:
|
||||||
serviceName: dbupdatem # Check: (Get-Service -Name 'dbupdatem').StartType
|
serviceName: AdobeARMservice # Check: (Get-Service -Name AdobeARMservice).StartType
|
||||||
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
||||||
-
|
-
|
||||||
function: RunInlineCode
|
function: DisableService
|
||||||
parameters:
|
parameters:
|
||||||
code: |-
|
serviceName: adobeupdateservice # Check: (Get-Service -Name adobeupdateservice).StartType
|
||||||
schtasks /Change /DISABLE /TN "DropboxUpdateTaskMachineCore"
|
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
||||||
schtasks /Change /DISABLE /TN "DropboxUpdateTaskMachineUA"
|
-
|
||||||
revertCode: |-
|
function: DisableService
|
||||||
schtasks /Change /ENABLE /TN "DropboxUpdateTaskMachineCore"
|
parameters:
|
||||||
schtasks /Change /ENABLE /TN "DropboxUpdateTaskMachineUA"
|
serviceName: adobeflashplayerupdatesvc # Check: (Get-Service -Name adobeflashplayerupdatesvc).StartType
|
||||||
|
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
||||||
|
-
|
||||||
|
function: RunInlineCode
|
||||||
|
parameters:
|
||||||
|
code: |-
|
||||||
|
schtasks /change /tn "Adobe Acrobat Update Task" /disable
|
||||||
|
schtasks /change /tn "Adobe Flash Player Updater" /disable
|
||||||
|
revertCode: |-
|
||||||
|
schtasks /change /tn "Adobe Acrobat Update Task" /enable
|
||||||
|
schtasks /change /tn "Adobe Flash Player Updater" /enable
|
||||||
-
|
-
|
||||||
name: Disable Razer Game Scanner Service
|
name: Disable Razer Game Scanner Service
|
||||||
recommend: standard
|
recommend: standard
|
||||||
@@ -2671,7 +2642,29 @@ actions:
|
|||||||
parameters:
|
parameters:
|
||||||
serviceName: LogiRegistryService # Check: (Get-Service -Name 'LogiRegistryService').StartType
|
serviceName: LogiRegistryService # Check: (Get-Service -Name 'LogiRegistryService').StartType
|
||||||
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
||||||
|
-
|
||||||
|
name: Disable Dropbox auto update service
|
||||||
|
recommend: standard
|
||||||
|
call:
|
||||||
|
-
|
||||||
|
function: DisableService
|
||||||
|
parameters:
|
||||||
|
serviceName: dbupdate # Check: (Get-Service -Name 'dbupdate').StartType
|
||||||
|
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
||||||
|
-
|
||||||
|
function: DisableService
|
||||||
|
parameters:
|
||||||
|
serviceName: dbupdatem # Check: (Get-Service -Name 'dbupdatem').StartType
|
||||||
|
defaultStartupMode: Automatic # Allowed values: Automatic | Manual
|
||||||
|
-
|
||||||
|
function: RunInlineCode
|
||||||
|
parameters:
|
||||||
|
code: |-
|
||||||
|
schtasks /Change /DISABLE /TN "DropboxUpdateTaskMachineCore"
|
||||||
|
schtasks /Change /DISABLE /TN "DropboxUpdateTaskMachineUA"
|
||||||
|
revertCode: |-
|
||||||
|
schtasks /Change /ENABLE /TN "DropboxUpdateTaskMachineCore"
|
||||||
|
schtasks /Change /ENABLE /TN "DropboxUpdateTaskMachineUA"
|
||||||
-
|
-
|
||||||
category: Disable Media Player data collection
|
category: Disable Media Player data collection
|
||||||
children:
|
children:
|
||||||
@@ -7366,10 +7359,44 @@ functions:
|
|||||||
call:
|
call:
|
||||||
function: RunPowerShell
|
function: RunPowerShell
|
||||||
parameters:
|
parameters:
|
||||||
code: Get-WindowsCapability -Online -Name '{{ $capabilityName }}*' | Remove-WindowsCapability -Online
|
code: |-
|
||||||
|
$capabilityName = '{{ $capabilityName }}'
|
||||||
|
try {
|
||||||
|
# Using wildcard for version number handling
|
||||||
|
$capability = Get-WindowsCapability -Online -Name "$capabilityName*"
|
||||||
|
if (!$capability) {
|
||||||
|
Write-Host "Skipping. Capability `"$capabilityName`" is missing."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
if ($capability.State -eq 'NotPresent') {
|
||||||
|
Write-Host "Skipping. Capability `"$capabilityName`" is missing."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
Write-Host "Removing capability `"$capabilityName`""
|
||||||
|
Remove-WindowsCapability -Online -Name "$($capability.Name)" -ErrorAction Stop
|
||||||
|
Write-Host "Successfully removed `"$CapabilityName`""
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-Error "Failed to remove `"$capabilityName`": $_"
|
||||||
|
}
|
||||||
revertCode: |-
|
revertCode: |-
|
||||||
$capability = Get-WindowsCapability -Online -Name '{{ $capabilityName }}*'
|
$capabilityName = '{{ $capabilityName }}'
|
||||||
Add-WindowsCapability -Name "$capability.Name" -Online
|
try {
|
||||||
|
# Using wildcard for version number handling
|
||||||
|
$capability = Get-WindowsCapability -Online -Name "$capabilityName*"
|
||||||
|
if (!$capability) {
|
||||||
|
Write-Error "Failed to find `"$capabilityName`"."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
$result = Add-WindowsCapability -Name $capability.Name -Online -ErrorAction Stop
|
||||||
|
Write-Host "Successfully added `"$capabilityName`"."
|
||||||
|
if ($result.RestartNeeded -eq 'Yes') {
|
||||||
|
Write-Warning "A restart is needed to finish installing `"$capabilityName`"."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-Error "Failed to add `"$capabilityName`": $_"
|
||||||
|
}
|
||||||
-
|
-
|
||||||
name: RenameSystemFile
|
name: RenameSystemFile
|
||||||
parameters:
|
parameters:
|
||||||
|
|||||||
Reference in New Issue
Block a user