Known Folder Move redirects Desktop, Documents and Pictures into each user's OneDrive, so the folders look the same but the files live in the cloud. Try it on a small pilot first. Enable the policies Silently sign in users to the OneDrive sync app with their Windows credentials, Silently move Windows known folders to OneDrive and Prompt users to move Windows known folders to OneDrive, giving your tenant ID to the last two. Make sure Windows Folder Redirection and the Desktop policy Prohibit User from manually redirecting Profile Folders are not in the way. You have succeeded when the folder paths sit under the user's OneDrive folder, Manage backup shows the folders as backed up and the PCs appear in the OneDrive sync health dashboard.
What Known Folder Move changes and what you need first
Known Folder Move (KFM) points a user's Desktop, Documents and Pictures folders at their OneDrive for Business instead of a local folder in the profile. People keep saving to Documents as they always have. The files simply sync to the cloud and appear on their other devices. The Microsoft policies cover those three folders, and they are what this guide configures.
The move is one-way by design. Once a folder has been moved, the policy never touches that folder again, even if you untick it later. That is why a small pilot matters more here than it would for a setting you can flip back and forth.
KFM puts the folders into OneDrive and keeps them there. It is not a separate backup, because a file deleted on the PC is deleted from the synced copy too. Recovery beyond OneDrive's own recycle bin is a separate decision, and the NCSC small business backup guidance is the place to start on that.
- Each user needs a OneDrive for Business that is provisioned, and the sync app signed in with their work account. Known Folder Move does not work for users syncing OneDrive files from SharePoint Server.
- The PCs should be on a current build of the OneDrive sync app. Microsoft recommends upgrading to the latest build before you deploy.
- You need your Microsoft 365 tenant ID, which is a GUID. You will paste it into two policies.
- Silent sign-in only works on PCs joined to Microsoft Entra ID. On other PCs users must sign in to OneDrive themselves before anything can move.
- Existing Windows Folder Redirection policies for Documents, Pictures or Desktop must be switched off first. The OneDrive policies do not work on top of them.
- The Desktop policy Prohibit User from manually redirecting Profile Folders (under User Configuration) must be Disabled or Not configured, otherwise the folders will not move.
Check a pilot PC for problems before anything moves
Most failed moves come down to a handful of file-level problems. A path that is too long, a huge file, a junction or an open Outlook data file will all stop a folder or leave it stuck. Finding them first is quicker than fielding a call from each user.
Run these checks in a normal (not elevated) PowerShell window, signed in as the pilot user, on a PC where the folders have not yet moved. They only read; nothing is changed. On a profile with many files each one can take a while, so give it a few minutes.
- Look for paths that will be too long once they sit inside OneDrive. Windows paths, including the file name, must stay under 260 characters, and the OneDrive folder name is added to the front. Replace YOUR_ONEDRIVE_FOLDER_PATH with the path the user will have, for example C:\Users\jsmith\OneDrive - Contoso Ltd, and run the command below. Anything listed needs shortening or moving up a level.
$prefix = "YOUR_ONEDRIVE_FOLDER_PATH" foreach ($name in "Documents","Desktop","Pictures") { Get-ChildItem -LiteralPath "$env:USERPROFILE\$name" -Recurse -Force -ErrorAction SilentlyContinue | Where-Object { ($prefix.Length + $_.FullName.Substring($env:USERPROFILE.Length).Length) -ge 260 } | Select-Object -First 50 -ExpandProperty FullName } - Look for files over 250 GB, which OneDrive cannot sync. Most offices will see no output, which is what you want.
foreach ($name in "Documents","Desktop","Pictures") { Get-ChildItem -LiteralPath "$env:USERPROFILE\$name" -Recurse -Force -File -ErrorAction SilentlyContinue | Where-Object { $_.Length -gt 250GB } | Select-Object FullName, Length } - Look for reparse points (junctions and symbolic links) and Outlook .pst data files. A folder containing a junction or symlink cannot be protected, and a .pst held open by Outlook can leave OneDrive showing Processing changes. Run this only before the move, because OneDrive's own placeholder files also carry the reparse point attribute afterwards.
foreach ($name in "Documents","Desktop","Pictures") { Get-ChildItem -LiteralPath "$env:USERPROFILE\$name" -Recurse -Force -ErrorAction SilentlyContinue | Where-Object { ($_.Attributes -band [IO.FileAttributes]::ReparsePoint) -or $_.Extension -eq ".pst" } | Select-Object -First 50 FullName, Attributes } - Check where each folder currently points. A path outside the user's profile, such as a file share, means Windows Folder Redirection is still active and you need to follow Microsoft's transition steps before using KFM. A path inside a different organisation's OneDrive means the user will see a new, empty Desktop after the move unless that redirect is removed first.
[Environment]::GetFolderPath("Desktop") [Environment]::GetFolderPath("MyDocuments") [Environment]::GetFolderPath("MyPictures")
Choose how you will roll it out
There are two ways to start the move. The silent policy moves the folders with no user interaction, and optionally shows a notification afterwards. The prompt policy shows users a window asking them to protect their important folders. If they dismiss it, a reminder sits in the OneDrive activity centre until they act.
Microsoft's own advice is to use the silent policy on new PCs, and on existing PCs to roll out the prompt and silent policies gradually, with the two enabled together so that anyone whose silent move fails is prompted to fix the error. Its published pacing (silent: no more than 1,000 existing devices a day and 4,000 a week; prompt: 5,000 a day and 20,000 a week, across Windows and Mac) is written for very large estates. For a small business, the sensible reading is a pilot of a few PCs with varied data, then one team at a time.
Uploading is where the real cost is. The folder is redirected quickly, but the existing files then have to upload, and a user with a large Documents folder on a modest connection will saturate it for a while. Microsoft suggests temporarily using the policy Limit the sync app upload rate to a percentage of throughput for users with lots of data, then turning it off once the uploads have finished. Rolling out by team, ideally at the start of a day rather than before a deadline, is the simpler protection.
Configure the policies with Group Policy
These are Computer Configuration policies, so link and filter the GPO to the pilot computers rather than to users. The same settings exist in Intune, under the OneDrive administrative template settings, with the same names and the same verification below. Only the Group Policy route is described here.
One quirk to know before you start: once you have configured a OneDrive policy, set it to Enabled or Disabled from then on. Setting it back to Not configured leaves the registry value in place and does not undo the change. A setting called Not configured that does nothing is at least consistent.
- Install the OneDrive sync app on a PC that has the Group Policy tools, then open the adm folder under %localappdata%\Microsoft\OneDrive\YOUR_BUILD_NUMBER\adm. The build number is shown in the sync app under Settings, then the About tab. Copy the OneDrive .admx file into your domain's Central Store (\\YOUR_DOMAIN\sysvol\YOUR_DOMAIN\Policies\PolicyDefinitions) and the .adml file into the matching language subfolder, such as en-us. If you have no Central Store, the local policy store at %windir%\policydefinitions works for a single PC.
- Find your tenant ID in the Microsoft Entra admin center, on the Overview page of your tenant. Copy it as plain text.
- Create a new GPO, link it to the OU containing your pilot computers (or use security filtering to limit it to a pilot computer group), and open it for editing. Go to Computer Configuration, then Policies, then Administrative Templates, then OneDrive.
- Enable Silently sign in users to the OneDrive sync app with their Windows credentials. This lets users on Entra-joined PCs get set up without typing credentials. Microsoft recommends enabling it whenever you configure the sync app.
- Enable Silently move Windows known folders to OneDrive. Enter your tenant ID. Choose whether to show a notification after the folders have moved, and either leave all three folders selected or tick only the ones you want. A folder left unselected is not touched by this policy.
- Enable Prompt users to move Windows known folders to OneDrive and enter the same tenant ID. This is the safety net: if a silent move fails, the user is prompted to correct the problem and carry on.
- Open User Configuration, then Administrative Templates, then Desktop, and check that Prohibit User from manually redirecting Profile Folders is Disabled or Not configured. Also confirm that no Windows Folder Redirection policy applies to the pilot users for Documents, Pictures or Desktop.
- Optionally, enable Enable sync health reporting for OneDrive in the same Computer Configuration location. It is what lets the pilot PCs show up in the admin dashboard described later.
- Leave Prevent users from redirecting their Windows known folders to their PC and Prevent users from moving their Windows known folders to OneDrive unconfigured until the pilot has succeeded. The first stops users stopping protection once it is on, which is a good end state but an awkward one to be locked into early.
Setting the same values on a single test PC without Group Policy
If you only have one workgroup or test PC, you can write the same documented registry values directly. This changes policy values under HKLM and will cause the user's Desktop, Documents and Pictures to be moved to OneDrive once the sync app is running and signed in, so use it on a PC you are prepared to move. You need an elevated PowerShell window (Run as administrator).
- Replace YOUR_TENANT_ID with your tenant ID and run the commands below. They create the OneDrive policy key if needed, set the silent move for all three folders and enable the notification afterwards.
$key = "HKLM:\SOFTWARE\Policies\Microsoft\OneDrive" if (-not (Test-Path $key)) { New-Item -Path $key | Out-Null } New-ItemProperty -Path $key -Name "KFMSilentOptIn" -PropertyType String -Value "YOUR_TENANT_ID" -Force New-ItemProperty -Path $key -Name "KFMSilentOptInWithNotification" -PropertyType DWord -Value 1 -Force - If you need to undo the policy values, run the commands in this block. This removes the instruction only. Folders already moved stay in OneDrive. See the rollback section for how to bring them back.
$key = "HKLM:\SOFTWARE\Policies\Microsoft\OneDrive" Remove-ItemProperty -Path $key -Name "KFMSilentOptIn" Remove-ItemProperty -Path $key -Name "KFMSilentOptInWithNotification"
Check that it worked
Policy applies when a PC refreshes it, and the move happens once OneDrive is running and signed in as the user. Then comes the upload of existing files, which can take anywhere from minutes to many hours depending on how much data there is and how fast the connection is. You will see the folders redirected before the upload has finished, so check progress as well as location.
- On the pilot PC, refresh policy and then restart the PC, so that the policy applies and OneDrive starts cleanly. Run the command below in an elevated command prompt or PowerShell window. It refreshes Group Policy only and is not disruptive on its own.
gpupdate /force - Sign in as the pilot user and confirm the policy reached the PC. Run the query below. You should see KFMSilentOptIn with your tenant ID as its value, and KFMOptInWithWizard if you enabled the prompt policy. The silent notification shows as KFMSilentOptInWithNotification.
reg.exe query HKLM\SOFTWARE\Policies\Microsoft\OneDrive - Check where the folders now point by running the same three GetFolderPath commands from the pilot checks. Each path should now sit inside the user's OneDrive folder, for example C:\Users\jsmith\OneDrive - Contoso Ltd\Documents. If a path still points at the local profile, go to the troubleshooting section.
- Open the OneDrive sync app from the notification area, choose Help and Settings, then Settings, then the Sync and backup tab, then Manage backup. Desktop, Documents and Pictures should show as backed up, and the OneDrive icon should show that uploading has finished before you widen the rollout.
- In the Microsoft 365 Apps admin center (config.office.com), go to Health, then OneDrive Sync. The Overview tab shows a Known folders card with how many devices are using Known Folder Move, and the Devices tab lists the folders moved on each device. You need Office Apps Administrator or Microsoft 365 Administrator rights to set the dashboard up, and Global Reader is enough to view it afterwards. Follow the Setup page there, which includes generating a Tenant Association Key, and enable the sync health reporting policy on the devices you want to see.
- Be patient with the dashboard. Devices can take up to three days to appear after sync health reporting is enabled, must be switched on for at least five hours to be eligible, and only report while the user is signed in. The sync app must be version 22.232 or later. The dashboard is a fleet check, not a way to confirm one PC in the next five minutes, so use the local checks above for that.
Moving a folder back or stopping protection
Because the policy is one-way, rollback is a per-folder action rather than a policy switch. Switching off the silent or prompt policy stops new PCs being moved but leaves every moved folder where it is. Plan on doing this for a single PC at a time.
There are two routes. A user can open OneDrive Settings, then Sync and backup, then Manage backup, turn off the folder, and choose where the files stay: only in OneDrive (and removed from the PC) or only on the PC (and removed from OneDrive). That choice deletes the files from one side, so the user should read the dialog rather than click through it. It also does not work if you have enabled Prevent users from redirecting their Windows known folders to their PC, which makes the Stop protecting button unavailable and shows an error instead.
For admins, Prevent users from moving their Windows known folders to OneDrive has a setting that redirects known folders back to the user's device. It writes KFMBlockOptIn with a value of 2, and it does not take effect while the silent or prompt policies are enabled, so set those to Disabled first. Microsoft states that the files in those folders remain in OneDrive, so do a trial on a single pilot PC and see exactly what the user is left with before you use it more widely.
If a folder does not move
These are the usual blockers, roughly in the order worth checking.
- Nothing happens at all: check that OneDrive is running and signed in with the work account, and that the policy values from the registry query are present. The silent policy needs a signed-in sync app, and on PCs that are not Entra-joined the user has to sign in first.
- Error 0x80070005 or folders refuse to redirect: a Group Policy is blocking redirection of profile folders. Check Prohibit User from manually redirecting Profile Folders under User Configuration, Administrative Templates, Desktop.
- Silent move ignored where Windows Folder Redirection applies: the OneDrive policies do not work for folders redirected somewhere else. Disable the Folder Redirection policy and leave the content where it is first. Microsoft's transition steps for local and network share redirection are different, so use the right set.
- Folder protection is unavailable or errors appear: the usual causes are file paths of 260 characters or more, files over 250 GB, file names beginning with a space or containing characters such as \ : / * ? " or |, junction points or symlinks, and files open in another program that cannot be moved.
- OneNote notebooks block a move or stop-backup action: they live in the cloud and cannot be moved to the computer. Close them and reopen them from the new location afterwards.
- User has an empty Desktop after the move: they were previously redirected to another organisation's OneDrive. The old files stay there and must be copied across by hand.
- OneDrive sticks on Processing changes with Outlook open: an Outlook .pst file in the redirected folder is the likely culprit. Removing the data file from OneDrive's reach can help.
- A folder was moved but you want it to move again: the policy never reapplies to a folder it has already moved, so there is nothing to re-run. Change the folder location by hand or follow the rollback route.
Technical terms explained
- Central Store
- A shared folder on the domain controllers where Group Policy template files are kept, so every administrator sees the same available settings.
- Group Policy
- The Windows feature that lets administrators push settings to many domain-joined computers or users from a central location.
- Known Folder Move
- A OneDrive feature that redirects the Windows Desktop, Documents and Pictures folders into a user's OneDrive, so the files sync to the cloud while still appearing in their usual places.
- reparse point
- A special kind of file system object, such as a junction or symbolic link, that points at another location. Folders containing them cannot be protected by OneDrive.
- tenant ID
- The unique identifier (a GUID) for your Microsoft 365 organisation. The policies use it to make sure folders are moved to your organisation's OneDrive rather than another account.
- Windows Folder Redirection
- An older Group Policy feature that points folders such as Documents at a different location, often a network share. It conflicts with the OneDrive policies.
Sources and further reading
- Redirect and move Windows known folders to OneDrive (Microsoft Learn)
- Use OneDrive policies to control sync settings (Microsoft Learn)
- OneDrive sync reports in the Apps Admin Center (Microsoft Learn)
- Back up your Documents, Pictures and Desktop folders with OneDrive (Microsoft Support)
- Recommended sync app configuration (Microsoft Learn)
- Backing up your data - small organisations guide (NCSC)