Copying a file to a Public OneDrive folder

Hi Guys,

I am trying to create a bat file that will save a file in a specific file server then from that file server it will copy the file then it will save to a public or shared OneDrive folder. The script is working 100% if I tested it manually, but if I deploy it to SCCM, it only works on saving the file in the file server but not working on copying the file in the OneDrive. Can someone help me how to do it?

Thank you guys!

0 Comments   [ + ] Show comments

Answers (1)

Posted by: rock_star 4 years ago
4th Degree Black Belt

Could be any of the following reason:

1. user context of launch. ( Sccm run application with system context)
2. Permission to user to copy file to onedrive.

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ