Onedrive - Restrict synchronization to only one or specific folders (possibly via Reg or Gpo)

A Ska 241 Reputation points
2024-05-02T07:39:18.7333333+00:00

Hi,

I would like to allow company users to use OneDrive but I'm scared about how many problems they could create (because they do not kknow how to use it...)

1: Would it be possible to let users select for the sync only a predefined folder (for example: %userprofile%\Documents\OneDrive_Sync) without risking that they could select the Desktop or the Document folder (that could be of several GBs.)

2: Is it possible to

Thank you!

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Emi Zhang-MSFT 30,046 Reputation points Microsoft External Staff
    2024-05-03T06:39:27.7533333+00:00

    Hi,

    I suggest you refer to this support article about Redirect and move Windows known folders to OneDrive:

    https://learn.microsoft.com/en-us/sharepoint/redirect-known-folders

    You can find the Silently move Windows known folders to OneDrive:

    https://learn.microsoft.com/en-us/sharepoint/use-group-policy#silently-move-windows-known-folders-to-onedrive

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. A Ska 241 Reputation points
    2024-05-03T13:10:28.4466667+00:00

    Sorry there was a typo

    ...........................................

    I did find a solution to accomplish this via GPO but I have a doubt about the KFMBlockOptIn Value for those who already backed up their Know folders:

    Prevent users from moving their Windows known folders to OneDrive

    If you disable or don't configure this setting, users can choose to move their known folders.

    Enabling this policy sets the following registry key value to 1:

    [HKLM\SOFTWARE\Policies\Microsoft\OneDrive]"KFMBlockOptIn"=dword:00000001

    To redirect the known folders back to the user's device and enable this policy, set the following registry key value to 2:

    [HKLM\SOFTWARE\Policies\Microsoft\OneDrive]"KFMBlockOptIn"=dword:00000002

    Should I select 00000001 or 00000002???I want to avoid folder redirection and keep Documents and Desktop NOT redirected for those users that erroneously selected the oneDrive Backup

    Thanks

    0 comments No comments

  3. A Ska 241 Reputation points
    2024-05-09T08:28:13.93+00:00

    Dears

    Just as information I configured the policy to "No" ( reg key equal 2).

    The Backup is no more resquested, the Redirection is stopped BUT files and folders remains in the C:\Users..\OneDrive folder and must be moved manually.

    I suppose it is by design

    Thanks

    0 comments No comments

Your answer

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