Onedrive Exclude Folder

Posted onby

OneDrive settings → Choose folders and deselected the nodemodules folder. Then when you run npm install in the project root folder, OneDrive will detect a conflict with the contents of.

I'm getting a warning for some swf files in a user's OneDrive and after raising a ticket I was told these files are not supported in OneDrive (it's actually the version history which causes Veeam to throw 403 errors). I would therefore like to exclude the entire folder from the job but everything I've tried so far doesn't work!
  1. You can accomplish this by opening the OneDrive settings on your PC. Go to OneDrive settings Click the Account tab Click 'Choose Folders' and then cherry pick the folders you want to exclude.
  2. When I set up OneDrive, it asks me which folders I want to exclude from syncing. This is an important feature I use on my tablet and work laptop.
Onedrive Exclude FolderI've read the Powershell reference with regards to the Add-VBOJob -ExcludedOneDriveFolders switch here: ... tml?ver=40 but it doesn't actually show the syntax required for excluding a folder - just that it requires a string. Is this just simply a folder name or do i need to enter the entire path?
Onedrive Exclude FolderSettingThe error we get in Veeam is below:
Failed to backup item version: /_vti_history/512/Documents/F Drive/Property/Health & Safety/GE700 CITB October 2013/content/F/SWF-CSK-GE700-2012-F01-18.swf, version: 1.0, The remote server returned an error: (403) Forbidden. :: 0:45:41
Could someone please help me out and tell me the correct syntax for excluding the 'GE700 CITB October 2013' folder from this backup job so I can stop the warnings?-->

This article is for IT admins managing the OneDrive sync app.

There are two primary advantages of moving or redirecting Windows known folders (Desktop, Documents, Pictures, Screenshots, and Camera Roll) to Microsoft OneDrive for the users in your domain:

Onedrive exclude folder from iphone
  • Your users can continue using the folders they're familiar with. They don't have to change their daily work habits to save files to OneDrive.

  • Saving files to OneDrive backs up your users' data in the cloud and gives them access to their files from any device.

Onedrive Exclude Folder From Upload

For these reasons, we recommend moving or redirecting known folders to OneDrive if you're an enterprise or large organization. See all our recommendations for configuring the sync app. Small or medium businesses may also find this useful, but keep in mind you'll need some experience configuring policies. For info about the end-user experience, see Protect your files by saving them to OneDrive.

Prepare to move known folders on existing devices

We recommend that you upgrade to the latest available build before you deploy to decrease deployment issues. Known Folder Move doesn't work for users syncing OneDrive files in SharePoint Server.

Onedrive Exclude Folder

To check eligibility on existing devices, data volume, and item counts as you decide on a rollout plan, and to later monitor progress of the rollout, use the Known Folder Move PowerShell script.


If your organization is large and your users have a lot of files in their known folders, make sure you roll out the configuration slowly to minimize the network impact of uploading files. For users who have a lot of files in their known folders, consider using the policy Limit the sync app upload rate to a percentage of throughput temporarily to minimize the network impact and then disable the policy once uploads are complete.

About the Known Folder Move policies

OneDrive policies can be set using Group Policy, Intune Windows 10 Administrative Templates, or by configuring registry settings. For a full reference of available policies and their registry settings, see Use OneDrive policies to control sync settings.

The following policies control the Known Folder Move feature:

  • Use this setting to give the users a call to action to move their Windows known folders.

    If users dismiss the prompt, a reminder notification will appear in the activity center until they move all known folders or an error occurs with the move, in which case the reminder notification will be dismissed.

    If a user has already redirected their known folders to a different OneDrive account, they'll be prompted to direct the folders to the account for your organization (leaving existing files behind).


    We recommend deploying the prompt policy for existing devices only, and limiting the deployment to 5,000 devices a day and not exceeding 20,000 devices a week.

  • Use this setting to redirect and move known folders to OneDrive without any user interaction. Move all the folders or select the desired individual folders. After a folder is moved, the policy will not affect the folder again, even if the selection for the folder changes.


    You can choose to display a notification to users after their folders have been redirected.

    A number of errors can prevent this setting from taking effect, such as:

    • A file exceeds the maximum path length
    • The known folders aren't in the default locations
    • Folder protection is unavailable
    • Known folders are prohibited from being redirected

    For info about these errors, see Fix problems with folder protection.


    We recommend deploying the silent policy for existing devices and new devices while limiting the deployment of existing devices to 1,000 devices a day and not exceeding 4,000 devices a week. We also recommend using this setting together with 'Prompt users to move Windows known folders to OneDrive.' If moving the known folders silently does not succeed, users will be prompted to correct the error and continue.

  • Use this setting to force users to keep their known folders directed to OneDrive.


    Users can direct their known folders by opening OneDrive sync app settings, clicking the Backup tab, and then clicking Manage backup.

For info about using the OneDrive policies, see Use Group Policy to control OneDrive sync app settings.

Transition from the Windows Folder Redirection Group Policy objects

The OneDrive Known Folder Move Group Policy objects won't work if you previously used Windows Folder Redirection Group Policy objects to redirect the Documents, Pictures, or Desktop folders to a location other than OneDrive. The OneDrive Group Policy objects won't affect the Music and Videos folders, so you can keep them redirected with the Windows Group Policy objects. Follow these steps to switch to using the Known Folder Move Group Policy objects.

How To Make Onedrive Not Sync Folder

  • If folders have been redirected to OneDrive using Windows Folder Redirection Group Policy:

    1. Disable the Window Folder Redirection Group Policy and make sure to leave the folder and contents on OneDrive.
    2. Enable KFM Group Policy. Known folders remain in OneDrive.
  • If folders have been redirected to a location on a local PC:

    1. Disable the Window Folder Redirection Group Policy and make sure to leave the folder and contents at the redirected location.
    2. Enable KFM Group Policy. Known folders move to OneDrive.
  • If folders have been redirected to a network file share:


    We recommend using Windows 10 Fall Creators Update (version 1709 or later) or Windows Server 2019 and the current version of OneDrive to get the benefits from Files On-Demand.

    1. Use a migration tool to copy contents in the network file share location to a user's OneDrive, making sure that all contents go into the existing Documents, Pictures, or Desktop folders.
    2. Disable the Window Folder Redirection Group Policy and make sure to leave the folder and contents on the network file share.
    3. Enable KFM Group Policy. Known folders move to OneDrive and will merge with the existing Desktop, Documents, and Pictures folders which contain all the file share content that you moved in the first step.