SCCM Package/Application to start OneDrive.exe silently for users

Julie M 546 Reputation points
2021-05-06T05:36:37.267+00:00

Dear Team,

We have deployed OneDrive client to 10K users. For almost 70% of the users the OneDrive sync started, but rest of the users the sync not initated due to the Onedrive.exe process is not even started for the first time. When we start the exe the sync starts in few seconds.

Query: We would like to push some SCCM application or package to start the Onedrive.exe. Locally when we run the command from user context with /background switch its works fine.

But when we deploy Application, its running on System context, so fails to lauch the exe for user and we tried deploy a package to run with user rights (deployed to user collection), but most of the user got admin rights on the PC, so running the command with admin rights also fails locally/remotely.

Please anyone can suggets a mitigation for this issue, thanks.

The onedrive.exe files resides in below location.

For 9K users (Per Machine installation) : C:\Program Files(x86)\Microsoft OneDrive\Onedrive.exe

For 1K users (Per User installation) : C:\Users\Userid\AppData\Local\Microsoft\OneDrive\Onedrive.exe

Microsoft 365 and Office | OneDrive | For business | Windows
Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Rahul Jindal 10,911 Reputation points
    2021-05-06T22:24:27.953+00:00
    0 comments No comments

  2. AllenLiu-MSFT 49,316 Reputation points Microsoft External Staff
    2021-05-07T06:12:02.44+00:00

    Hi, @Julie M
    Thank you for posting in Microsoft Q&A forum.
    IT administrators can run %localappdata%\Microsoft\OneDrive\OneDrive.exe through SCCM or Group Policy script to automatically open OneDrive.exe on the users machine.

    May we know how do you set the User Experience when you deploy the OneDrive? We can set the
    Installation behavior: Install for system and Logon requirement: Only when a user is logged on
    to make sure that the application gets installed on the user profile.

    We may refer to this:
    https://learn.microsoft.com/en-us/archive/blogs/paulodias/how-to-deploy-onedrive-next-generation-sync-client-with-sccm


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Julie M 546 Reputation points
    2021-05-09T04:51:02.24+00:00

    Hello Allen,

    I'm deploying for user collections with condition when user logged on and with user rights. But the user has admin rights on PC, so its failed with the popup please run with user rights.


  4. AllenLiu-MSFT 49,316 Reputation points Microsoft External Staff
    2021-05-10T06:51:20.387+00:00

    Hi, @Julie M
    It looks like a specific issue with onedrive, you may try to disable administrative rights temporary by using "net user administrator /active:no" in cmd command. Then, try to launch the OneDrive client and see whether it helps. If so, you can reactive administrative rights by using "net user administrator /active:yes" in cmd command.

    We may refer to:
    https://answers.microsoft.com/en-us/msoffice/forum/msoffice_onedrivefb-mso_other-mso_o365b/one-drive-cant-be-run-using-full-adminstrator/5d986df0-018d-4369-9f1a-d56cd50b9748

    0 comments No comments

  5. Julie M 546 Reputation points
    2021-05-11T09:56:49.967+00:00

    Thanks a lot. But it requires a reboot to disable the permission. So no way to do it background.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.