Note: This KB assumes that your users are already using a ProfileDisk and OneDrive.
Problem:
User shell folders - Documents, Desktop and Pictures are currently redirected to a \\Serrver\Share and you would like to use OneDrive's Known Folder Move feature to backup the data to OneDrive.
Description:
Known Folder Move (KFM) is a feature in OneDrive that automatically backs up and syncs your Desktop, Documents, and Pictures folders to the cloud.
Note: After applying these settings, Documents, Desktop and Pictures data will reside on the ProfileDisk. Verify that your ProfileDisk is properly sized.
Resolution:
Create new registry module rules to enable KFM.
- Use the following to create the new registry rules.
- KFMSilentOptIn - You will need your tenant ID - 11111111-2222-3333-4444-555555555555
- Action: Add Value
- Hive: HKEY_LOCAL_MACHINE
- Key: SOFTWARE\Policies\Microsoft\OneDrive
- Type: REG_SZ
- Value: KFMSilentOptIn
- Data: 11111111-2222-3333-4444-555555555555
- KFMSilentOptInWithNotification
- Action: Add Value
- Hive: HKEY_LOCAL_MACHINE
- Key: SOFTWARE\Policies\Microsoft\OneDrive
- Type: dword
- Value: KFMSilentOptInWithNotification
- Data: 1
- KFMSilentOptOut
- Action: Add Value
- Hive: HKEY_LOCAL_MACHINE
- Key: SOFTWARE\Policies\Microsoft\OneDrive
- Type: dword
- Value: KFMSilentOptOut
- Data: 0
- KFMSilentOptIn - You will need your tenant ID - 11111111-2222-3333-4444-555555555555
Create new Folder Redirection rules to copy the data to the OneDrive path.
Open CMD and run SET. Verify the %OneDriveCommercial% environmental variable exists. This variable will be used as the target path.
Use the following as an example to create the new folder redirection rules.
Create a rule for Documents, Desktop and Pictures if needed.
Ensure these new rules are run after your existing rules.
Update and deploy the configuration. Settings should take affect on the user's next logon.