refactor disabling application experience and document better

This commit is contained in:
undergroundwires
2021-02-20 12:13:08 +01:00
parent c9b91f6d8f
commit 45a3669443

View File

@@ -489,23 +489,49 @@ actions:
- -
name: Disable devicecensus.exe (telemetry) process name: Disable devicecensus.exe (telemetry) process
recommend: standard recommend: standard
code: reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\DeviceCensus.exe" /v "Debugger" /t REG_SZ /d "%windir%\System32\taskkill.exe" /f call:
revertCode: reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\DeviceCensus.exe" /v "Debugger" /f function: KillProcessWhenItStarts
parameters:
processName: DeviceCensus.exe
- -
name: Disable Application Experience (Compatibility Telemetry) category: Disable Compatibility Telemetry (Application Experience)
recommend: standard children:
code: |- -
schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /DISABLE category: Disable Microsoft Compatibility Appraiser
schtasks /change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /DISABLE docs: https://www.ghacks.net/2016/10/26/turn-off-the-windows-customer-experience-program/
schtasks /change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /DISABLE children:
schtasks /change /TN "Microsoft\Windows\Application Experience\AitAgent" /DISABLE -
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\CompatTelRunner.exe" /v "Debugger" /t REG_SZ /d "%windir%\System32\taskkill.exe" /f name: Disable Microsoft Compatibility Appraiser task
revertCode: |- recommend: standard
schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /ENABLE code: schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /disable
schtasks /change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /ENABLE revertCode: schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /enable
schtasks /change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /ENABLE -
schtasks /change /TN "Microsoft\Windows\Application Experience\AitAgent" /ENABLE name: Disable CompatTelRunner.exe (Microsoft Compatibility Appraiser) process
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\CompatTelRunner.exe" /v "Debugger" /f recommend: standard
call:
function: KillProcessWhenItStarts
parameters:
processName: CompatTelRunner.exe
-
name: Disable sending information to Customer Experience Improvement Program
recommend: standard
docs:
- https://www.ghacks.net/2016/10/26/turn-off-the-windows-customer-experience-program/
- https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/permanently-disabling-windows-compatibility/6bf71583-81b0-4a74-ae2e-8fd73305aad1
code: schtasks /change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /disable
revertCode: schtasks /change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /enable
-
name: Disable Application Impact Telemetry Agent task
recommend: standard
docs: https://www.shouldiblockit.com/aitagent.exe-6181.aspx
code: schtasks /change /TN "Microsoft\Windows\Application Experience\AitAgent" /disable
revertCode: schtasks /change /TN "Microsoft\Windows\Application Experience\AitAgent" /enable
-
name: Disable "Disable apps to improve performance" reminder
recommend: strict
docs: https://www.ghacks.net/2016/10/26/turn-off-the-windows-customer-experience-program/
code: schtasks /change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /disable
revertCode: schtasks /change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /enable
- -
name: Disable telemetry in data collection policy name: Disable telemetry in data collection policy
recommend: standard recommend: standard
@@ -4186,6 +4212,12 @@ actions:
copy "%~dpnx0" "%AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup.bat" copy "%~dpnx0" "%AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup.bat"
revertCode: del /f /q %AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup.bat revertCode: del /f /q %AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup.bat
functions: functions:
-
name: KillProcessWhenItStarts
parameters: [ processName ]
# https://docs.microsoft.com/en-us/previous-versions/windows/desktop/xperf/image-file-execution-options
code: reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\'{{ $processName }}'" /v "Debugger" /t REG_SZ /d "%windir%\System32\taskkill.exe" /f
revertCode: reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\'{{ $processName }}'" /v "Debugger" /f
- -
name: UninstallStoreApp name: UninstallStoreApp
parameters: [ packageName ] parameters: [ packageName ]