We deploy with Intune the Setting "Silently move Windows known folders to OneDrive". This works perfect, but only one time. If the user change the setting after applies, the Policy will not applyed anymore. Now I have developed the following command steps to re-run the process of moving. But It looks like a tweak ( without nowing of side effects). Is there any other way to do this.
@echo off cls echo Resetting Folder Backup for /F "tokens=3" %%A in ('reg query "HKCU\SOFTWARE\Microsoft\OneDrive" /v "OneDriveTrigger"') DO (set Onedriveexe=%%A)