- Add admin protection error message for shadow admin scenarios
When Windows Admin Protection is enabled, the elevated process runs as a
shadow admin with a different SID, so distributions registered under the
real user are not visible. Surface an informational message in two cases:
- Launching a distribution by name that is not found (WSL_E_DISTRO_NOT_FOUND)
- Listing distributions when none are registered (WSL_E_DEFAULT_DISTRO_NOT_FOUND)
formatting
Show admin protection message for non-elevated users too
When Admin Protection creates a shadow admin, distros registered under
the real user are invisible to the shadow admin and vice versa. Remove
the elevation check so the informational message appears for both
elevated and non-elevated callers.
Co-authored-by: Copilot [email protected]
Co-authored-by: Ben Hillis [email protected]
Co-authored-by: Copilot [email protected]
SOCIAL SHARE CARD GENERATOR