Session 0 not detected but still runs in silent mode (not using SCCM)

We came up with a solution that works for both Intune and SCCM, and this includes RDP sessions, which as you know can be a problem with showing interaction.

See this article and the posts from my colleague “Adi-R”

Launching Deploy-Application via PSEXEC using ServiceUI with Quoted paths fails - The Toolkit / General Discussion - PSAppDeployToolkit Community