iTunes, OneDrive, and Groove Music icons

Syncing your iTunes Library with Groove Music+OneDrive

You could be copying and pasting your iTunes Music Library folders over into your OneDrive Music folder manually and have them show up in Groove Music apps and on the Xbox. This would require you to merge and handle conflicts manually as you buy new songs on iTunes and want to keep your Groove catalog in sync. Instead we’re going to utilize the magic of NTFS Directory Junctions in Windows 10 to have OneDrive and iTunes share folders and stay in sync without duplicating files.

Groove Music — formerly Xbox Music — offers apps for Windows, Xbox, Android, iOS, and a web player where you can listen to your music collection through the OneDrive file hosting service. Any song you put in OneDrive’s music folder will be available for streaming in Groove Music. You’ll have to pay for OneDrive storage beyond the first 30 free gigabytes, but there is no extra “Music Pass” or add‐on music subscription required to use it with your own music.

Some words of caution before proceeding. Don’t create a NTFS junction between two folders that both reside in the OneDrive folder. This will result in an infinite loop and can result in the files being deleted locally and on the server. Be aware that deleting a file from iTunes will delete it from OneDrive and visa versa while the two folders are linked! Do not attempt this on Windows 8 or 8.1! It will seemingly work, but a underlying system in Windows used by OneDrive on these two versions of Windows called “shadow files” may cause you to loose your files when they’re linked like this. The special shadow files system no longer exist in Windows 10 and is thus no longer a concern.

  1. Make sure to create the OneDrive Music folder by logging in using this link
  2. Open the OneDrive folder on your computer after a minute and check that the Music folder have appeared

You can now proceed to setup the syncing connection between iTunes and OneDrive.

Windows 10:

  1. Open the Command Prompt by searching for “cmd” in the Start menu
  2. Type in the following command in one line carefully and press Enter:
mklink /J "%USERPROFILE%OneDriveMusiciTunes Library" "%USERPROFILE%MusiciTunesiTunes MediaMusic"

The above comment creates what’s called a “NTFS junction”, making the two folder paths indistinguishable from each other. OneDrive will sync what it sees as a “MusiciTunes Library” folder inside your OneDrive folder. When it starts reading data from that folder, it is rerouted to read from “MusiciTunesiTunes MediaMusic” in your home folder, where iTunes normally stores your music files. This saves you from having two sets of the same files and you don’t have to worry about keeping two folders in sync – as they’re now really the same folder.

Groove Music icon

Groove Music app icon

If you’ve got OneDrive setup to sync all your files to more than one computer, the entirety of your iTunes Library will be downloaded on the secondary computer. It can be a good idea to open OneDrive Settings exclude the “MusiciTunes Library” from being synced to other computers.

You can adjust the folder paths in the above example commands to sync your videos, ebooks, or any other folder you want to stay where it is on your computer but still want to synchronize it with OneDrive. Note that your iTunes movie collection is restricted by DRM and thus you cannot play them back on Windows or Xbox through OneDrive.

The above instructions assume default folder paths. You should double check them by looking in your home folder before proceeding. If you’ve made changes to the default folders, make sure both your iTunes Library and local OneDrive folder are still stored on NTFS‐partitions and adjust the paths accordingly. If none of that made any sense, it probably doesn’t apply to you either.

OneDrive may spend a significant time to upload all your songs, and even more time processing the songs after they’ve been uploaded. Your music should start showing up in Groove Music after a few minutes. If no music shows up, double check that it is being uploaded and are apearing in your OneDrive Music folder. If that still doesn’t help, have a look at the Groove Music+OneDrive frequently asked questions page. Note that Groove Music+OneDrive is not available in all countries.

You can automatically move any Groove purchase to your iTunes library and — assuming you’ve followed the above instructions — have them sync back up to OneDrive. Using this method you’ll move the files out of the Groove folder in Windows and into your iTunes folder instead and from there up to OneDrive and back to Groove. A bit complicated to follow, but it means Groove purchases will be available everywhere.

Windows 10:

  1. Type in the following command in one line carefully in the Command Prommpt and press Enter:
mklink /J "%USERPROFILE%MusiciTunesiTunes MediaAutomatically Add To iTunesGroove Purchases" "%USERPROFILE%MusicPurchases"

When syncing Groove-purchases to iTunes, you should double‐check your app settings for the two media apps. Look in iTunes Preferences: Advanced to see that you have enabled both the ’Copy Files to iTunes Media folder when adding to library’ and ‘Keep my iTunes Media folder organized’ options (they’re enabled by default). In Groove Settings, check that ‘Automatically download songs here after you buy them on other devices’ is enabled. This will make sure any new purchase you make gets synced to iTunes and thus OneDrive.

By changing the folder paths in these instructions, you can have your Groove Music or iTunes sync with other cloud services like DropBox,, and Google Drive as well. These other services don’t offer as good a media player as the Groove+OneDrive combo, but they’re useful for backups. You can link one folder to multiple locations, but avoid putting linked folders into eachother (chaining).


  1. Thank you! This was very useful! Using your instruction, I now have my OneDrive folder and my iTunes folder linked, thus saving me a ton of space on my Surface Pro 4. (I have about 67GB of music in my iTunes folder.) I was a bit hesitant at first; computer “work-arounds” are not the norm for me…even as of yet, I have not linked my Groove Music and ITunes. One question, if I ever wanted to unlink these folders, how do I do that? May seem common sense to you, but to me, not so much, lol. Thank you for your time.

    1. Sometimes a “computer work-around” is just the thing you need. 🙂

      To remove a junction all you have to do is delete the destination junction. For example, the command del /P "%USERPROFILE%OneDriveMusiciTunes Library" will remove the iTunes Library folder inside your OneDrive Music folder. You can also delete this folder/junction using the File Explorer. Just don’t delete your regular iTunes folder!

      You should always make backups when you’re uncertain about how something will work or whether it’s really the thing you wanted to do. Backups will cover your back and let you try out new things with your computer.

  2. I set up the NTSF Junction by following the instructions above but I am now looking to delete it. Could you please advise of the command I can use to do this?

    Thank you.

  3. Hi, there! I realize that made the junction, all files would be loaded to OneDrive, but all folders were loaded but not music files. At this way I can’t listen my music in other places.

    What goes wrong here? Thanks.

  4. Windows 10 installation has captured my iTunes library into Groove and I want to use iTunes not groove to play my music, how do I return the files?

    1. I can’t tell what happen on your system, but I’m guessing that Groove are just sharing the music files from the iTunes library with iTunes. You can change the default music program from Groove back to iTunes by changing the settings in the Settings app: System: Default apps.

  5. When I plug in the junction do I literally write userprofile or does that mean I put mine there….what is it anyways?

    1. You write %USERPROFILE% verbatim as shown here. It’s whats known as an environmental variable that contains the actual path. If you type this in the location bar in File Explorer, it will take you there so you can see the actual path.

  6. Cant get it to work. I will show you exactly what it all looks like.


    On the same above line I enter mklink /J “%USERPROFILE%OneDriveMusiciTunes Library” “%USERPROFILE%MusiciTunesiTunes MediaMusic” so that it all looks like this when I hit enter C:Userscmbrw_000>mklink /J “%USERPROFILE%OneDriveMusiciTunes Library” “%USERPROFILE%MusiciTunesiTunes MediaMusic” Is this correct? With or without spaces?

  7. How do I send music from groove to my iTunes folder. Currently I have music in both iTunes and Groove- I don’t want to use Groove- I only wish to use ITunes.

  8. Is this going to double the files and thus double the amount of space my music is taking up? My laptop doesn’t have a lot of storage and I just want to have a backup of my music on OneDrive

    1. Now, it’s not going to take up twice the space. The whole setup will take up about 0,01 MB extra. It will, however, take up extra space on your OneDrive account so make sure your subscription has a sufficient storage quota for your entire music collection.

  9. Hey mate. Thanks so much for this. Rather than removing the junction, is there a way to ‘pause’ it or similar? Ideally I’d like to keep my music in OneDrive but not have the sync run every time I log in.

    Thank you.

  10. Hey, I used the junction to sync my itunes with my onedrive but ever since I deleted itunes, onedrive keeps reconfiguring because it couldnt find my itunes file anymore and it is annoying me so much. i had to sign in onedrive every time i open my laptop. is there anything i can do to stop onedrive from always reconfiguring?

    I tried restarting my laptop and restarting onedrive

    1. The file junction isn’t causing these problems. It’s just a shortcut in the filesystem that links two folders. If one end of the junction is missing, the junction reverts to a 0-byte file.

      However, the have-to-login-to-OneDrive-every-time-you-login issue is interesting. I’ve seen it on many systems but I don’t know what causes it. I’ll look into it and will send you an update if I figure it out.

  11. The junction folder was created in my user folder. Was this the correct path for the junction? It is not syncing my iTunes folder in OneDrive. I double checked the path of each of the music folders and they are correct. Any idea why its not working for me? Was I supposed to create the folder in OneDrive before the junction? I tried both ways. I even deleted some of my downloaded iTunes music to see if that would sync when I re-download.

Leave a Reply

Your email address will not be published. Be courteous and on-topic. Comments are moderated prior to publication.