In the releases since 3.10.1 there is a new Examples folder
It contains a Invoke-ServiceUI.ps1
script that detects if a user is present or not.
- If a user exists → it uses ServiceUI.EXE
- No user → Silent install
FYI: If you have having to use workarounds in Intune, vote for this Intune feature to happen. (only 82 votes at this time)