Unable to move OneDrive folder to another drive

Marco Patella 0 Reputation points
2026-11-11T08:26:09.5933333+00:00

Hi everyone,

all of a sudden this morning the OneDrive Windows app was unable to find my OneDrive folder on my D: drive (which is not not a removable drive).

I re-installed OneDrive but I'm now unable to create the OneDrive folder on my D: drive: the only option I have is to create it under my C:\Users\profile folder.

I also tried to move the OneDrive folder ("unlink this PC" and re-sign in) and I get a "your onedrive folder can't be created in the location you selected" error.

Since my C: drive is running out of space, I would like to move the OneDrive folder to D:

Running Windows 10 enterprise 22H2.

Any suggestion is appreciated.

MP

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Jean Gahunga 0 Reputation points Independent Advisor
    2026-11-12T07:33:13.9+00:00

    Hi @Marco Patella

    Here's how to set it up:

    1. Rename your old folder on D: (for example, change D:\OneDrive to D:\OneDrive_old) so your existing files stay safe.
    2. Let OneDrive finish setting up in the default C:\Users\YourName\OneDrive location. Once it finishes loading, right-click the OneDrive cloud icon in your taskbar and hit Pause Syncing, or just close OneDrive completely.
    3. Open C:\Users\YourName\ in File Explorer and delete that brand-new empty OneDrive folder it just created (or copy anything inside it over to D:\OneDrive_old first).
    4. Open Command Prompt as Administrator and run this command, swapping in your actual profile and folder names (if it's a work account, the folder might be named OneDrive - CompanyName): mklink /J "C:\Users\YourName\OneDrive" "D:\OneDrive_old"
    5. Start OneDrive back up. It'll read the C: path normally, pick up all your existing files on D:, and keep everything stored on D: without eating up space on C:.

    Was this answer helpful?

    0 comments No comments

  2. Jean Gahunga 0 Reputation points Independent Advisor
    2026-11-11T09:13:30.9033333+00:00

    Step 1: Unlink Your OneDrive Account

    Unlinking stops syncing safely without deleting your cloud files.

    • Open OneDrive settings. Click the white or blue OneDrive cloud icon in your taskbar notification area, click the gear icon, and select Settings.
    • Go to the Account tab. Select the Account tab on the left side of the window.
    • Unlink this PC. Click Unlink this PC and confirm by clicking Unlink account. Close the setup window that pops up afterward.

    Step 2: Move the Folder to the New Drive

    Now that OneDrive is disconnected, Windows will let you move the local folder.

    • Open File Explorer. Navigate to your current OneDrive folder, which is usually located at C:\Users\[YourUsername].
    • Move the folder. Click the OneDrive folder once to select it, then click the Move to button on the top toolbar (or press Ctrl + X). Navigate to your new drive (such as D:\), and paste it there (Ctrl + V).
    • Wait for the transfer to finish. Large folders can take several minutes to copy over to the new drive.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.