User centric application deployment with dependencies requiring elevation
If we talk about modern management, we deploy applications to user collections. In that case detection method PowerShell scripts are executed in user context and not System. This behavior is inherited to dependencies, but the dependencies may require elevation.
E.g., if you want to deploy a Microsoft Store based Linux distribution via CM to users, you need to install the Microsoft Windows Subsystem Linux first. The detection for WSL in PowerShell is “(Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux).State”, but it requires Elevation.
In you create an appx-based Linux Distribution application with the WSL application as Dependency it fails if it is deployed to a user: “Elevation required”. The same WSL application can be installed assigned to machines.
Pls. allow dependency applications to be always installed for system if required with an option.