refactor disabling application experience and document better
This commit is contained in:
@@ -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)
|
||||||
|
children:
|
||||||
|
-
|
||||||
|
category: Disable Microsoft Compatibility Appraiser
|
||||||
|
docs: https://www.ghacks.net/2016/10/26/turn-off-the-windows-customer-experience-program/
|
||||||
|
children:
|
||||||
|
-
|
||||||
|
name: Disable Microsoft Compatibility Appraiser task
|
||||||
recommend: standard
|
recommend: standard
|
||||||
code: |-
|
code: schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /disable
|
||||||
schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /DISABLE
|
revertCode: schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /enable
|
||||||
schtasks /change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /DISABLE
|
-
|
||||||
schtasks /change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /DISABLE
|
name: Disable CompatTelRunner.exe (Microsoft Compatibility Appraiser) process
|
||||||
schtasks /change /TN "Microsoft\Windows\Application Experience\AitAgent" /DISABLE
|
recommend: standard
|
||||||
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
|
call:
|
||||||
revertCode: |-
|
function: KillProcessWhenItStarts
|
||||||
schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /ENABLE
|
parameters:
|
||||||
schtasks /change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /ENABLE
|
processName: CompatTelRunner.exe
|
||||||
schtasks /change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /ENABLE
|
-
|
||||||
schtasks /change /TN "Microsoft\Windows\Application Experience\AitAgent" /ENABLE
|
name: Disable sending information to Customer Experience Improvement Program
|
||||||
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\CompatTelRunner.exe" /v "Debugger" /f
|
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 ]
|
||||||
|
|||||||
Reference in New Issue
Block a user