I’m trying to execute setup file first which works fine and then there is two files i would like to copy to desktop for all logged in users on the system, not sure why the copy part not working if someone can can suggest or have different way of doing to copy the two files from $dirSupportFiles to Desktop of all logged in users in the system.
Option #2 You could use Active setup, to make sure it’s copied for any user(s) on the machine.
the function is called Set-ActiveSetup, I have done this for apps that need each user to connect to a server I setup something inside HKCU for all of them
Thanks for replying, I wanted to use something that when i run this via the SCCM it will run as system environment and wont work, I was wondering if something. to take care of all logged in users to copy, I will try the method shared by you, Thank you.