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 PC boots. Keep it running in the background, synchronizing your important files all the time — even if you never log in!

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

AlwaysUp includes advanced tools to make OneDrive start at boot and run 24/7.

The Application Advisor will help you install OneDrive as a Windows Service with all our recommended settings — in just a few clicks. Simply select Advisor from the Application menu and follow the straightforward prompts.

To setup the OneDrive sync client as a Windows Service with AlwaysUp:

  1. Download and install OneDrive if necessary.

    Start it up, 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 > Add to open the Add Application window:

    Add Application

  5. On the General tab:

    • In the Application field, enter the full path to the OneDrive executable file, OneDrive.exe.

      You will find the executable in this folder:

      where <YOUR-USER-NAME> is the name of the Windows account (on this PC) in which you installed OneDrive.

      (Note: You may have trouble seeing the hidden AppData folder when selecting the path, but Windows will accept it if you type it in.)

    • In the Start the application field, select Automatically but shortly after the computer boots. This setting introduces a 1-2 minute delay before launching OneDrive at boot — enough time to give networking and other critical services a chance to spin up.

    • And in the Name field, enter the name that you will call the application in AlwaysUp. The default of OneDrive will probably be fine, but you can change it to something else if you prefer.

    OneDrive Windows Service: General Tab

  6. Click on to the Logon tab and 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/URLs you have 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.

    And since OneDrive is not designed to run with full administrative rights, be sure to check the Launch the application without admin rights box:

    OneDrive Windows Service: Logon Tab

  7. Click over to the Startup tab and:

    • Check the Ensure that the Windows Networking components have started box. OneDrive uses TCP/IP, the language of the Internet, and AlwaysUp must ensure that the underlying network components are running before OneDrive tries to sync your files.

    • Check both the Stop all copies of the application running on this computer and Also whenever the application is restarted boxes. These options will ensure that another copy of OneDrive won't prevent the instance launched by AlwaysUp from starting properly.

    OneDrive Windows Service: Startup Tab

  8. Almost there! Click the Save button and in a couple of seconds an entry for OneDrive will show up in the AlwaysUp window. It is not yet running though so the state will be Stopped:

    OneDrive Windows Service: Created

  9. Now that we've configured OneDrive to start as a Windows Service when 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 (), 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 the Continue button:

      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 from the tray icon. Click the tray icon, then the gear, then select Pause syncing > Quit OneDrive from the menu.

  10. Now back to AlwaysUp. To start OneDrive, choose Application > Start "OneDrive". OneDrive will spin up and the state of the entry should transition to Running in a few seconds.

    Click the green circle to see some practical details of the underlying process:

    OneDrive Windows Service: Running

    Note: OneDrive will be running in the background, in the isolated Session 0. Because of that, you won't see its tray icon. In addition, the colorful icons that OneDrive normally shows next to each file and folder may not appear either.

    However, despite the lack of visual feedback, your files will still be synchronized by OneDrive. Please validate by creating a file on your PC and checking that it shows up normally online after a minute or two.

    And if you want to start OneDrive on your regular desktop, you can either:

    • Stop OneDrive in AlwaysUp and start it on your desktop as you would normally, or

    • Select Application > Restart "OneDrive" in this session, to bring OneDrive onto your screen.

  11. That's it! Next time your computer boots, OneDrive will start up immediately, before anyone logs on.

    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), run OneDrive without administrative rights, and much more!

Download & Import the OneDrive Settings File

For your convenience, we've provided an AlwaysUp Settings File with all the settings recommended in this guide.

To use the file:

  1. Download OneDrive_alwaysup.xml to your computer. Please make a note of where you save it.

  2. In AlwaysUp, select Application > Import from the menu.

  3. Choose the file you downloaded in step 1.

  4. Make the following adjustments in the Add Application window, to specify your local Windows account:

    1. On the General tab, in the Application field, replace ENTER YOUR USERNAME with the username of the Windows account where you installed and run OneDrive:

      Enter your Windows username in the path

    2. And on the Logon tab, delete the placeholder values and enter the credentials for your Windows account (the same one you entered in a):

      Enter your Windows account information

  5. Click Save to record your new OneDrive service.

OneDrive not working properly as a Windows Service?

Download & Try it Free!

Download AlwaysUp and Run as a Service Today! Version 15.1

7.9 MB Installer
Our 12,000+ customers include...
Compatible with Windows 11 Compatible with Windows Server 2022 Compatible with Windows 10
Over 94,000 installations, and counting!
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 19+ years!