Add logic to catch failed app exec alias executions (#11765)

This commit is contained in:
Blue 2024-07-12 15:29:44 -07:00 committed by GitHub
parent 04c33779a4
commit 12a571d588
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,13 @@ rules:
field3: Wsl/CallMsi/REGDB_E_CLASSNOTREG
set: msix-bad-install-state
- logline:
provider: Microsoft.Windows.Subsystem.Lxss
task: LxssException
field1: 'onecore\vm\wsl\lxss\wslutil\liftedsupport.cpp'
field5: '0x80070002'
set: msix-bad-app-exec-alias-state
- logline:
provider: Microsoft-Windows-Hyper-V-Chipset
field1:
@ -290,7 +297,11 @@ actions:
tag: 'msix'
- when:
condition: msix-bad-install-state
condition: msix-bad-app-exec-alias-state
debug_message: 'Found evidence of failed app execution alias execution in LiftedSupport'
- when:
condition: {or: [msix-bad-install-state, msix-bad-app-exec-alias-state]}
user_message: |
Your WSL installation appears to be in a bad state. Can you try running the following command to reinstall WSL (elevated powershell) and see if that solves the issue?