Hello
Please can someone help?
I’m using this command to copy an RDP file to the desktop
Copy-File -Path “$dirFiles\RDP.rdp” -Destination “$envUserDesktop\RDP.rdp”
I use intune win32 to create the app and then deploy using the system or user context.
However, the desktop icon does not appear.
If I manually run the exe (or script as admin) on the machine, it works fine…
Other copy actions of the deployment work (to standard folders)
The only thing unusual maybe is the desktop is redirected to onedrive…but the exe works when run…
$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.