{"id":4603,"date":"2018-04-08T09:43:13","date_gmt":"2018-04-08T16:43:13","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=4603"},"modified":"2023-02-04T06:32:05","modified_gmt":"2023-02-04T14:32:05","slug":"multiple-instances-onedrive","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/multiple-instances-onedrive\/","title":{"rendered":"Q&#038;A: Can I Run Multiple Instances of OneDrive?"},"content":{"rendered":"<div align=\"center\"><img decoding=\"async\" src=\"\/blog\/images\/qa-onedrive.png\" title=\"Q &#038; A - OneDrive\" alt=\"Q &#038; A - OneDrive\" border=\"0\" ><\/div>\n<div class=\"blog-qa-question-box\">\n<img decoding=\"async\" src=\"\/images\/quotes-transparent-21x21.png\">&nbsp;&nbsp;I have tried AlwaysUp to let <a href=\"\/products\/AlwaysUp\/Apps\/RunOneDriveAsAService.html\">OneDrive run as a service<\/a>. Everything works perfectly, but is it possible to create multiple OneDrive services? I have tried it and when I start the second service event logs suggest that the application crashed.<\/p>\n<p align=\"right\">&#8212; Bernhard<\/p>\n<\/div>\n<p>\nHi Bernhard. Here is what we have learned from experimenting with <a href=\"https:\/\/onedrive.live.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft OneDrive<\/a> on our Windows Server 2016 machine:<\/p>\n<h2><b>You can run multiple copies of OneDrive on your PC<\/b><\/h2>\n<p>We created two user accounts and <a href=\"https:\/\/www.microsoft.com\/en-us\/microsoft-365\/onedrive\/download\" target=\"_blank\" rel=\"noopener noreferrer\">installed OneDrive<\/a> in each. Setup went smoothly and both users were able to start OneDrive normally. Here you can see the two copies of the executable running in the Task Manager:<\/p>\n<div class=\"image-padding\" align=\"center\"><a href=\"\/blog\/images\/onedrive-processes-task-manager.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Two OneDrive Processes Running\" target=\"_blank\"><img decoding=\"async\" src=\"\/blog\/images\/onedrive-processes-task-manager.png\" title=\"Two OneDrive Processes Running (click to enlarge)\" alt=\"Two OneDrive Processes Running\" border=\"0\" width=\"520\" ><\/a><\/div>\n<p>Next, we installed OneDrive as a windows service in one of the accounts. That arrangement worked fine as well, with a copy of OneDrive.exe running in the isolated Session 0 and another in a regular, interactive login session (#3):<\/p>\n<div class=\"image-padding\" align=\"center\"><a href=\"\/blog\/images\/onedrive-session-0-task-manager.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"OneDrive Running in Session 0\" target=\"_blank\"><img decoding=\"async\" src=\"\/blog\/images\/onedrive-session-0-task-manager.png\" title=\"OneDrive Running in Session 0 (click to enlarge)\" alt=\"OneDrive Running in Session 0\" border=\"0\" width=\"520\" ><\/a><\/div>\n<p>Note that we had to turn off the &#8220;Stop all copies&#8230;&#8221; setting on the AlwaysUp Startup tab (to avoid terminating the non-service copy):<\/p>\n<div class=\"image-padding\" align=\"center\"><a href=\"\/blog\/images\/alwaysup-startup-tab-no-stop-copies.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"AlwaysUp Startup Tab - No stop copies\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/alwaysup-startup-tab-no-stop-copies.png\" width=\"411\" height=\"592\" title=\"AlwaysUp Startup Tab - No stop copies (click to enlarge)\" alt=\"AlwaysUp Startup Tab - No stop copies\" border=\"0\" ><\/a><\/div>\n<h2><b>But you cannot run multiple copies of OneDrive in one Login Session<\/b><\/h2>\n<p>When we setup both users to run OneDrive as a windows service, the first copy started but the second one failed. AlwaysUp kept trying to launch OneDrive, but it simply refused to start:<\/p>\n<div class=\"image-padding\" align=\"center\"><a href=\"\/blog\/images\/onedive-fails-to-start.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"OneDrive Fails to Start\" target=\"_blank\"><img decoding=\"async\" src=\"\/blog\/images\/onedive-fails-to-start.png\" title=\"OneDrive Fails to Start - No stop copies (click to enlarge)\" alt=\"OneDrive Fails to Start\" border=\"0\" width=\"520\" ><\/a><\/div>\n<p>It seems that multiple copies of OneDrive won&#8217;t run in Session 0.<\/p>\n<p>Removing AlwaysUp from the equation, we see the same behavior in a regular login session. The first instance of OneDrive started fine, with the usual &#8220;clouds&#8221; tray icon showing up on the taskbar. However, when we launched a second copy:<\/p>\n<ul>\n<li>A new OneDrive.exe process appeared in Task Manager (in the Details\/Advanced tab)<\/li>\n<li>A File Explorer window opened, listing the contents of our OneDrive folder<\/li>\n<li>The new process exited, disappearing from Task Manager<\/li>\n<\/ul>\n<p>It is very likely that the second copy of OneDrive, on detecting an instance already operating in the same session, sent an &#8220;activate yourself&#8221; message to the first before promptly quitting. <b>As far as we can tell, this is how the folks at Microsoft have designed OneDrive to work.<\/b> There is no way around it.<\/p>\n<p>So no, you will not be able to run multiple copies of OneDrive as windows services in Session 0 with AlwaysUp. \ud83d\ude41 <\/p>\n<p>However, all may not be lost, because&#8230;<\/p>\n<h2><b>You can run a single OneDrive with two cloud accounts<\/b><\/h2>\n<p>Instead of running two copies of the OneDrive application, you may be able to serve two online accounts with a single instance of OneDrive.<\/p>\n<p>To set up a second account:<\/p>\n<ul>\n<li>\n<p>Right-click the OneDrive task tray icon (<img decoding=\"async\" style=\"vertical-align: text-bottom;\" src=\"\/blog\/images\/onedrive-tray-icon-16x16.png\" \/>)and select <b>Settings<\/b><\/p>\n<\/li>\n<li>\n<p>In the window that appears, move to the <b>Account<\/b> tab<\/p>\n<\/li>\n<li>\n<p>Click the <b>Add an account<\/b> button<\/p>\n<\/li>\n<li>\n<p>Sign in to OneDrive with the email address and password of your second online account:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/add-onedrive-account.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Add a Second Account\" target=\"_blank\"><img decoding=\"async\" src=\"\/blog\/images\/add-onedrive-account.png\" title=\"Add a Second Account (click to enlarge)\" alt=\"Add a Second Account\" border=\"0\" width=\"520\" ><\/a><\/div>\n<\/li>\n<li>\n<p>Click OK to dismiss the settings window and save your changes.<\/p>\n<\/li>\n<\/ul>\n<p>You should now see two OneDrive cloud icons in your task tray. And when you start OneDrive as a windows service with AlwaysUp, both accounts should be synchronized.<\/p>\n<p>We hope this solution works for you!<\/p>\n<div align=\"center\">\n<div class=\"cta-button-1\">\n<table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\">\n<tbody>\n<tr>\n<td align=\"center\"><a href=\"\/blog\/tag\/onedrive\/\" title=\"More about running OneDrive as a Windows Service\"><span><nobr>Read more articles about OneDrive&#8230;<\/nobr><\/span><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/dropbox-smart-sync-problem\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: Why can&#039;t I open my Dropbox files even though Smart Sync is off?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/dropbox-documents-150x150-1.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: Why can&#039;t I open my Dropbox files even though Smart Sync is off?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/backup-and-sync-cpu-memory\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q &amp; A: Why is AlwaysUp Reporting the Wrong CPU and Memory for Backup and Sync?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/qa-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q &amp; A: Why is AlwaysUp Reporting the Wrong CPU and Memory for Backup and Sync?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/alwaysup-works-with-windows-8-windows-server-2012\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Windows 8\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/win8-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">AlwaysUp works with Windows 8 &amp; Windows Server 2012<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp;I have tried AlwaysUp to let OneDrive run as a service. Everything works perfectly, but is it possible to create multiple OneDrive services? I have tried it and when I start the second service event logs suggest that the application &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/multiple-instances-onedrive\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":3560,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[26,110,127,153,196],"class_list":["post-4603","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alwaysup","tag-alwaysup-tag","tag-onedrive","tag-qa","tag-session-0-isolation","tag-windows-services-2"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/4603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=4603"}],"version-history":[{"count":2,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/4603\/revisions"}],"predecessor-version":[{"id":11797,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/4603\/revisions\/11797"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/3560"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=4603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=4603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=4603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}