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…
Thanks in advance
$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
thank you, i’ll take a look. Intune does allow the ability to deploy using either system or user…
since you use the PSADT native copy-file command you should be able to read in the PSADT log where this file is copied to.