Skip to content
Discussion options

You must be logged in to vote

The elevation correlation is useful, but 0xC0000142 only establishes STATUS_DLL_INIT_FAILED; it does not by itself prove the ACL is the cause. I’d capture the child’s effective environment and token for the failing and successful runs, then compare the exact launch boundary: integrity level, default DACL, PATH, TEMP/TMP, inherited stdio/console flags, and the resolved pwsh.exe/cmd.exe path. Also check Windows Event Viewer → Application Error/SideBySide at the failure timestamp for the DLL or initialization module.

Because the same runner works in read-only mode and fails for both PowerShell and cmd under workspace-write, a useful regression is a minimal child that prints its token and exi…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yuease
Comment options

@MalikAhed
Comment options

Answer selected by yuease
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants