Forum Discussion

Samer Rustom's avatar
Samer Rustom
Copper Contributor
Jun 28, 2023

How to prevent end user from deselecting OneDrive backup please

I configured to autoback Desktop, Documents and Pictures to OneDrive and it is working fine but the user are able to deselect any of those of folder.

I want a message to appear on onedrive says this managed by your administrator. Please help me 

  • LeonPavesic's avatar
    LeonPavesic
    Silver Contributor

    Samer Rustom 

    To prevent users from unlinking their business account on OneDrive using Group Policy on Windows Server 2019, you can follow these steps:

    1. Open Group Policy Management: On your Windows Server 2019, open the Group Policy Management console. You can access it through the Start menu or by running the "gpmc.msc" command.

    2. Create or select a Group Policy Object (GPO): Create a new GPO or select an existing one that you want to modify. Right-click on the desired domain or organizational unit (OU) and choose "Create a GPO in this domain, and Link it here" or "Edit" if the GPO already exists.

    3. Navigate to the OneDrive settings: In the Group Policy Management Editor window, navigate to the following location:

      User Configuration > Policies > Administrative Templates > OneDrive

      1. able the "Prevent users from unlinking their business account" policy: Double-click on the policy named "Prevent users from unlinking their business account" to open its properties.

      2. Configure the policy setting: In the policy properties window, select the "Enabled" option to enforce the policy. Click on "Apply" and then "OK" to save the changes.

      3. Link the GPO: Go back to the Group Policy Management console, and link the GPO to the desired domain or OU where you want the policy to be applied. Right-click on the domain or OU and choose "Link an Existing GPO." Select the GPO you modified or created in step 2.

      4. Update Group Policy settings: On client machines, run the following command in Command Prompt or PowerShell to update the Group Policy settings:

        gpupdate /force

        Kindest regards



  • ZaheerAI's avatar
    ZaheerAI
    Copper Contributor
    Prevent users from redirecting their Windows known folders to their PC



    This setting forces users to keep their Documents, Pictures, and Desktop folders directed to OneDrive.

    If you enable this setting, the Stop protecting button in the Set up protection of important folders window is disabled, and users receive an error if they try to stop syncing a known folder.

    If you disable or do not configure this setting, users can choose to redirect their known folders back to their PC.



    Enabling this policy sets the following registry key:

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