Onedrive variable without running in user context

During the installation of an app I need post-installation actions performed which copy a specific file from SupportFiles to the users OneDrive folder. How can I achieve this?

Variable $env:onedrive does not work and $envUserMyDocuments also does not seem to work (probably because i’m not using the installer in user context mode). SCCM can do this with a separate app that runs in user context mode and a PS script.

Is there any way to achieve this in PSADT without running in user context mode (users have no admin rights) or having to make multiple installers?

ActiveSetup is your friend.

PSADT can help you setup Active setup to run at login for each user and will trigger ActiveSetup for the current user, too.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.