Copy Icon on Desktop Using Intune Issue

$envUserDesktop targets current user’s desktop. Don’t know if it’s the same on Intune but in SCCM it is being executed under SYSTEM not the logged in user. If that is the case then $envUserDesktop points to SYSTEM’s desktop not the user’s.

Covered something similar in this thread: User and System Deployment Settings - The Toolkit / General Discussion - PSAppDeployToolkit Community