Running multiple instances of Microsoft SkyDrive

I have desperately been trying to run multiple instances of the Windows Desktop SkyDrive Sync App on Windows 8. I have several Microsoft accounts and through creating Symbolic links have been able to allow SkyDrive to find the files & folders I would like to sync without actually moving them to the SkyDrive folders. I would like all the syncing to happen in the background, so I would need multiple instances of SkyDrive to be running. Here's what I have tried so far:

I created a new user, switched accounts to set up and run SkyDrive. This works fine except that I need to always remember to log in the other account(s) when I start my computer, another downside is that each log in starts unnecessary programs that just take up RAM.

Using Runas/PSExec:

C:\Windows\system32>psexec -u [Username] -p [Password] -d "C:\Users\[Username]\AppData\Local\Microsoft\SkyDrive\SkyDrive.exe"

If no SkyDrive process is already running on the computer, this will work and start the SkyDrive process of that account. However this will mean that I cannot start the SkyDrive process of my primary account. Starting that will simply open the SkyDrive folder of the other account. And Vice versa.

Any ideas guys, please? Thanks in advance.


Solution 1:

OK. After a lot of experimentation I have managed to solve the case! In simplest terms here is how to run multiple instances of SkyDrive simultaneously on Windows:

  • Create a new user account for each SkyDrive account
  • Log in to the newly created account and set up SkyDrive, get it up and running, then log off
  • On your primary account, Go to C:\Users and double-click on the profile of the newly created user, this should show you an error message telling you that you do not have the required permissions to access the folder, simply click on Continue to get the permissions
  • Download & Install Sandboxie
  • Create a Sandbox for each SkyDrive account, giving it an appropriate name
  • Download the PsTools, unzip the file and obtain the required PsExec (you may wish to place them all in a folder and set your %PATH% variable to that folder)
  • Create a batch file with following code and place it in the same folder as the psexec.exe program, replace the <> with your values:

    psexec -u <Username> -p <Password> -d "C:\Program Files\Sandboxie\Start.exe" /box:<Sandbox> C:\Users\<Username>\AppData\Local\Microsoft\SkyDrive\SkyDrive.exe

  • Run the batch file or schedule it to be run at logon

Note: You can, of course place the above code multiple times as needed for each account into one batch file. I plan to post a more detailed version of the above instructions on my blog soon.