Microsoft fixes OneDrive file reset bug on Windows • The Register

This month’s batch of Patch Tuesday updates hides a fix for a Windows issue where locally synced OneDrive data wasn’t always deleted on a reset.

The bug, which appeared in Windows publish health dashboard in February, is ironic, considering the disastrous rollout of Windows 10 in October 2018, which infamously gave users extra disk space by quietly erasing their data.

This latest issue, which affected both Windows 10 and 11, manifested for some users by letting locally synced OneDrive data persist even when a user selected the “delete everything” option during a reset. More serious for administrators, the problem could also occur after a remote reset initiated by a mobile device management (MDM) application (such as Intune, itself subject to a few new features this week), thus going against the interest of the function.

The issue occurred on devices with apps that had folders with repair data (Microsoft gave OneDrive and OneDrive for Business as examples). As a workaround, other than removing the machine from orbit (which in this writer’s opinion, when it comes to resetting Windows is the only way to be sure), Microsoft recommended Sign out or unlink OneDrive first before resetting. Where using Storage Sense to delete the Windows.old folder after the reset.

Data that has never been synced locally has not been affected.

The good news is that Microsoft has released a patch (KB5011493) for Windows 11 (and KB5011487 for Windows 10) to fix the problem.

The bad news is that it could take up to seven days after installing the patch “to fully fix the issue”.

What if you’ve already made a patch and those local OneDrive files persist? Difficult – the fix will not help you and you will have to work around the problem manually. ®