Run OneDrive as a Windows Service with AlwaysUp

How to Run OneDrive 24/7 as a Windows Service with AlwaysUp

Start Microsoft OneDrive automatically when your computer boots. Keep it running in the background, synchronizing your important files all the time


Last Updated on September 21, 2026

OneDrive is Microsoft's popular cloud storage service integrated with Office 365.

January 2025: Unfortunately, it seems that code changes in the latest builds of OneDrive (or a recent Windows update) can cause OneDrive to fail in Session 0.

So far the problem seems to affect mostly Windows Server 2019 and 2022 installations but we've gotten a few reports of trouble on Windows 11 and Server 2025 as well. Strangely, not all machines on those operating systems exhibit the problem.

When the problem occurs, AlwaysUp reports this error:

"OneDrive has no network connections to the cloud. It may not be synchronizing your files."

If you see that message — and no other problems are reported — you've likely fallen victim to the issue. :(

We're actively trying to work around the failure and craft a solution in our test environments but so far we're not had any breakthroughs. The harsh reality is that our small development team is at a disadvantage because Microsoft doesn't provide any documentation or support to help us troubleshoot. It's been an uphill battle.

In any case, this blog article details the situation and the only known workaround — setting up automatic logon and running OneDrive in the auto-logon session.

We'll update the blog article (and this guide) if we find a way to fix OneDrive in Session 0.


To install the OneDrive desktop application as a Windows Service with AlwaysUp:

  1. Download and install OneDrive if necessary.

    Start it, enter the library you want to synchronize and ensure that everything works as you expect.

  2. Download and install AlwaysUp, if necessary.

  3. Start AlwaysUp.

  4. Select Application > Advisor to launch the Application Advisor:

    Start Application Advisor

  5. Click Next to move past the welcome screen:

    Application Advisor: Introduction

  6. Choose OneDrive from the list of applications and click Next:

    Application Advisor: Select OneDrive

  7. AlwaysUp will spend a few minutes analyzing your OneDrive installation. Afterwards, it will warn you about the restrictions Microsoft introduced in the latest releases (mentioned at the top of this page):

    Warning: OneDrive may not work in Session 0

    Click Next to move on.

  8. Enter the user name and password of the Windows account where you installed and set up OneDrive. OneDrive must run in this account so that it can find the libraries and other artifacts you've configured.

    Note: Do not enter your OneDrive login and password here. Your Microsoft account won't work either. Please specify credentials used to login to a local account on this Windows PC:

    OneDrive Application Advisor: Enter Windows Credentials

    Click Next to move on.

  9. As the screen says, the AlwaysUp has composed the best settings to run OneDrive as a Windows Service. Click Next to open the Add Application window with all the details:

    OneDrive Application Advisor: Ready to add your application

  10. At this point, the Add Application window contains all the recommended settings for running OneDrive 24/7 whenever your machine boots. Feel free to cycle through the tabs and review the options that have been chosen.

    When you're ready, click Save to proceed:

    Save your OneDrive Windows Service settings

  11. The next window reviews the adjustments you should make to OneDrive when it's running in the background.

    Since we'll cover those later on in this guide, dismiss that window by clicking the Done button:

    Prepare OneDrive to run as a Windows Service

  12. In a few seconds, a new entry for OneDrive will appear in the AlwaysUp window. At this point, OneDrive is installed as a Windows Service but the state is "Stopped" because it isn't running yet:

    OneDrive Windows Service installed

  13. Now that OneDrive is configured to start as a Windows Service whenever your computer boots, let's turn off a few settings that could interfere with smooth 24/7 operation. To do so:

    1. Start OneDrive, if necessary.

    2. Click the OneDrive cloud tray icon (OneDrive tray icon), click the gear icon in the upper-right, and select Settings from the menu:

      OneDrive: Open Settings

    3. First, let's turn off the Files On-Demand feature. We recommend doing so to ensure that all your files are available on your PC at all times — even when OneDrive is running in the background.

      On the Sync and backup tab, open the Advanced settings section:

      OneDrive: Expand advanced settings

      Scroll down to Files On-Demand and click the Download all files button:

      OneDrive: Download all files

      OneDrive will ask you to confirm. Click Continue:

      OneDrive: Confirm download all files

    4. Next, let's deactivate notifications from OneDrive. We do that because you won't be able to see any notifications when OneDrive is running invisibly as a Windows Service.

      But even more importantly, we don't want any silly prompts to hold up file synchronization, waiting for you to click an OK button!

      Anyway, move to the Notifications tab and turn off all the entries:

      OneDrive: Turn off all notifications

    5. We're done adjusting OneDrive so close the settings window to save your changes.

    6. Finally, close OneDrive. Click the tray icon, then the gear, then select Pause syncing > Quit OneDrive from the menu.

  14. Now back to AlwaysUp.

    Normally we'd just start the OneDrive entry, which would launch OneDrive in the background. But as we mentioned before, that won't work with the latest versions of OneDrive.

    The only alternative is to set up automatic logon and run OneDrive in the auto-logon session. Follow those instructions to complete the setup.

  15. That's it. Next time your computer boots, Windows will automatically log on and OneDrive will start up immediately in that account.

    We encourage you to edit OneDrive in AlwaysUp and check out the many other settings that may be appropriate for your environment.

    Send an email when OneDrive stops unexpectedly (or someone accidentally shuts it down), set up a weekly restart to cure memory leaks, and much more.


OneDrive not working properly as a Windows Service?

  • Microsoft's guide to fixing OneDrive sync problems may help.

  • Consult the AlwaysUp Troubleshooter — our online tool that can help you resolve the most common problems encountered when running an application as a Windows Service.

  • From AlwaysUp, select Application > Report Activity > Today to bring up an HTML report detailing the interaction between AlwaysUp and OneDrive. The AlwaysUp Event Log Messages page explains what each message means.

  • Browse the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!

Our 14,000+ customers include...
AlwaysUp is fully compatible with Windows 11 AlwaysUp is fully compatible with Windows Server 2025
Over 97,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 20+ years!