OneDrive Known Folder Migration

Anonymous
2024-12-10T08:47:27+00:00

Having some dramas with known folder migrations in my environment.

We had a GPO with file redirection enabled for the Documents and Pictures folders, they would end up on a server share. Alongside that, we had OneDrive enabled and by default it was syncing the Desktop folder - it would throw an error for Documents/Pictures as they were redirected.

I've since removed the Folder Redirection, and users documents folders now exist locally on there PC.

I enabled known folders to silently deployed, but the change did not take effects on my PCs.

I pushed out a reg change to set KfmIsDoneSilentOptIn to 0 then restarted, the value remains as 0 with Desktop only being backed up still.
I also added a reg item SilentBusinessConfigCompleted and set to 0 but same result.

Short of running around and toggling it on 80 users machines, any other thoughts or ways to achieve this?

Microsoft 365 and Office | OneDrive | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2024-12-11T06:11:42+00:00

    Dear Ben,

    Thank you for additional information.

    As you checked the registry keys and Group Policy settings are correctly applied, and there are no errors in the sync log. However, the sync diagnostics report shows that there are no files to download or upload, and the sync progress state is 12, which typically indicates that the sync is in progress or waiting for changes.

    Please try resetting the OneDrive sync client on a few machines to see if that resolves the issue. You can do this by unlinking and relinking the OneDrive account: >> Right-click the OneDrive icon in the system tray.>> Select "Settings" > "Account" > "Unlink this PC".>> Follow the prompts to unlink and then re-link the account.


    I understand how important it is to get this issue resolved. However, it is important to understand the reporting process. This issue should be escalated to the specific team at Microsoft to do further investigation, and this can only be initiated by an Office 365 Global Administrator.

    The Global Administrator can open a service request with a Microsoft support engineer, who may then escalate the issue to the appropriate team by gathering log information. Through this escalation process, the product team can become aware of the issues reported by you, allowing them to conduct a more detailed analysis and work towards a resolution. This is the standard procedure for addressing such issues.

    We kindly ask for your understanding that, as community members, we do not have the ability to access your machine and configuration settings. However, with the assistance of our dedicated team, you will be able to find a solution.

    Have a great day and take care! 😊 

    Sincerely, 

    Naren | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-12-11T01:13:14+00:00

    Hi Naren,

    The registry keys are fine, there is not an issue with the group policy applying and they are set and not reverting.

    I'm not seeing any errors in the sync log.

    Sync Diagnostics - Sync Progress

    SyncProgressState: 12

    ================================================================================

    Diagnostic Report

    UtcNow: 2024-12-11T00:17:07.0000000Z

    BytesDownloaded = 0

    BytesToDownload = 0

    BytesToUpload = 0

    BytesUploaded = 0

    ChangesToProcess = 1

    ChangesToSend = 0

    DownloadSpeedBytesPerSec = 0

    EstTimeRemainingInSec = 0

    FilesToDownload = 0

    FilesToUpload = 0

    OfficeSyncActive = 0

    OfficeSyncEnabled = 0

    SymLinkCount = 0

    UploadSpeedBytesPerSec = 0

    activeHydrations = 0

    appId = 596

    bytesAvailableOnDiskDrive = 342478999552

    cid =

    clientType = Win32

    clientVersion = 24.221.1103.0003

    conflictsFailed = 0

    conflictsHandled = 0

    cpuPercentage = -1

    cpuTimeSecs = 10

    currentPrivateWorkingSetKB = 112392

    datVersion = 54

    dehydrations = 0

    device = *****

    deviceID =

    diskFlushOpsDelta = -1

    diskReadBytesDelta = -1

    diskReadOpsDelta = -1

    diskWriteBytesDelta = -1

    diskWriteOpsDelta = -1

    driveChangesToSend = 0

    driveSentChanges = 0

    drivesChangeEnumPending = 1

    drivesConnected = 1

    drivesScanRequested = 0

    drivesWaitingForInitialSync = 0

    env = Production

    errorFromGetDiskSizeAPICall = 0

    failedBytesDownloadedTotal = 0

    failedBytesUploadedTotal = 0

    files = 66549

    filesToDownload = 0

    flavor = ship

    folders = 4506

    fullScanCount = 0

    instanceID =

    invalidatedScanCount = 0

    isMsftInternal = 0

    numAbortedMissingServerChanges = 0

    numAbortedNoLongerIdle = 0

    numAbortedReSyncNeeded = 0

    numAbortedUnexpectedHttpStatus = 0

    numAbortedWatcherEtagDifference = 0

    numDeleteConvToUnmap = 0

    numDownloadErrorsReported = 0

    numDrives = 1

    numDrivesNeedingEventualScan = 0

    numExternalFileUploads = 0

    numFileDownloads = 0

    numFileFailedDownloads = 0

    numFileFailedUploads = 0

    numFileInWarning = 0

    numFileUploads = 0

    numHashMismatchErrorsReported = 0

    numLcChangeFile = 1

    numLcChangeFolder = 0

    numLcCreateFile = 0

    numLcCreateFolder = 0

    numLcDeleteFile = 0

    numLcDeleteFolder = 0

    numLcMoveFile = 0

    numLcMoveFolder = 0

    numLocalChanges = 0

    numProcessors = 12

    numRealizerErrorsReported = 0

    numResyncs = 0

    numSelSyncDrives = 0

    numUploadErrorsReported = 0

    officeVersion = 16.0.18227.20152

    officeVersionDot = 0

    originator =

    passiveHydrations = 0

    pid = 6136

    placeholdersEnabled = 1

    preciseScanCount = 0

    privateWorkingSetKB = 112392

    privateWorkingSetKBIncreaseDuringSyncVerification = 0

    processPrivateCommitKB = -1

    processVirtualMemoryUsedKB = -1

    scanState = 1

    scanStateStallDetected = 0

    seOfficeFiles = 0

    seOfficeFilesToDownload = 0

    seOfficeFilesToUpload = 0

    successfulBytesDownloadedTotal = 0

    successfulBytesUploadedTotal = 0

    syncProgressState = 12

    syncStallDetected = 0

    sync_progress_id =

    threadCount = 58

    timeUtc = 2024-12-11T00:17:07.0000000Z

    totalDoScanWorkCpuTimeInMs = 838

    totalDuration = -1

    totalInvalidatedScanCpuTimeInMs = 0

    totalProcessCpuTime = -1

    totalScanCpuTimeInMs = 5534023222101945

    totalSizeOfDiskDrive = 510235316224

    totalSubScopes = 2

    uptimeSecs = 55102

    userOverriddenConcurrentUploads = 0

    username = *****

    vaultState = 0

    version = 505

    wasFileDBReset = 0

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-12-11T01:11:46+00:00

    Hi Naren,

    The registry keys are fine, there is not an issue with the group policy applying and they are set and not reverting.

    I'm not seeing any errors in the sync log.

    Ben

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-12-10T10:17:31+00:00

    OneDrive Known Folder Migration - Microsoft Community

    Dear Ben,

    Good day! Thank you for your detailed information. We are here to assist you.

    As per your description, you had a Group Policy Object (GPO) that redirected the Documents and Pictures folders to a server share, while OneDrive was syncing the Desktop folder by default. After removing the folder redirection, users' Documents folders are now local. You enabled Known Folder Move (KFM) to silently deploy, but it didn't take effect. Despite setting the registry keys KfmIsDoneSilentOptIn and SilentBusinessConfigCompleted to 0, only the Desktop folder is being backed up.

    Several factors can prevent registry changes and Group Policy settings from taking effect, including conflicting policies, replication delays, and permissions issues. Incorrect registry key paths or values, and Client-side caching might retain old settings, so restarting the machine or logging off and back on can help. Ensure users have the latest OneDrive sync client and proper network connectivity to apply the settings.

    As you are seeking a way to streamline the configuration of 80 machines, it is advisable to deploy a script that will set the necessary registry keys and initiate a Group Policy update across all systems. Here's a detailed guide on how to deploy a script to set the required registry keys and force a Group Policy update across multiple machines:

    Step-by-Step Guide for Scripted Solution

    1. Create the Script: Open a text editor (like Notepad) and create a script file with the following content. Save the file with a .bat extension (e.g., KFM_SilentOptIn.bat).

    @echo off

    REM Set registry keys for Known Folder Move

    reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive" /v KfmIsDoneSilentOptIn /t REG_DWORD /d 0 /f

    reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive" /v SilentBusinessConfigCompleted /t REG_DWORD /d 0 /f

    REM Force Group Policy update

    gpupdate /force

    REM Logoff user to apply changes

    shutdown /l

    1. Deploy the Script: Use remote management tool like Group PolicySystem Center Configuration Manager (SCCM), or Intune to deploy the script to all user machines. Steps may be different for each type of tool however you can take reference of below points:-

    Using Group Policy: Open the Group Policy Management Console (GPMC). Create a new Group Policy Object (GPO) or edit an existing one. Navigate to Computer Configuration -> Policies -> Windows Settings -> Scripts (Startup/Shutdown). Add the script to the Startup scripts.

    Using SCCM: Create a new package and program in SCCM. Add the script to the package. Deploy the package to the target collection of computers.

    Using Intune: Go to the Intune portal. Create a new Device Configuration Profile. Add a PowerShell script with the content of the batch file. Assign the profile to the target group of devices.


    Disclaimer:

    Modifying the Windows registry and deploying changes via Group Policy Object (GPO) can have significant effects on your system and network. Incorrect changes to the registry can cause serious problems that may require you to reinstall your operating system. Similarly, improper GPO configurations can affect multiple machines and users, potentially leading to widespread issues.

    Before making any changes, it is highly recommended to back up the registry, your data, and ensure you have a recovery plan in place. Test all changes in a controlled environment before deploying them to production. Use the following instructions at your own risk. The author assumes no responsibility for any issues that may arise from using these instructions.


    If you continue to experience issues or if the configuration is not effective, please provide the following information with screen shots: 

    1. May I know if there any error messages related to the Application in Event Viewer?
    2. Could you please check System and Group Policy error logs?
    3. Run the command gpresult /h gpresult.html in Command Prompt to generate a report of the applied policies and review it for any discrepancies.
    4. Did you check OneDrive sync client logs located in the user's AppData folder for any errors?
    5. May I know if the relevant registry getting revert in the Registry Editor by navigating to the appropriate keys.
    6. Kindly check Group Policy Management Console (GPMC) to confirm that policies are properly linked and applied.

    Please understand that our initial reply may not always immediately resolve the issue. However, with your help and more detailed information, we can work together to find a solution.

    Have a great day and take care! 😊 

    Sincerely, 

    Naren | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments