Forum Discussion
- MathieuVandenHautteSteel ContributorHi Samer,
You can use a OneDrive policies to control sync settings:
https://learn.microsoft.com/en-us/sharepoint/use-group-policy#prevent-users-from-redirecting-their-windows-known-folders-to-their-pc - LeonPavesicSilver Contributor
To prevent users from unlinking their business account on OneDrive using Group Policy on Windows Server 2019, you can follow these steps:
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.
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.
Navigate to the OneDrive settings: In the Group Policy Management Editor window, navigate to the following location:
User Configuration > Policies > Administrative Templates > OneDriveable 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.
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.
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.
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
- ZaheerAICopper ContributorPrevent 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"