Solution:
Root Cause: Forced Auto-Arrange Flag Lock in Desktop Shell Registry State
When you organize icons on the desktop, Windows writes the coordinate positions to
HKCU\Software\Microsoft\Windows\Shell\Bags\1\Desktop. If the
FFlags binary value inside the Desktop Bag subkey becomes corrupted or enforced via a policy key, Windows sets the
0x00000001 bit flag (Auto Arrange) in memory during startup. This overrides the right-click context menu toggle, forcing
explorer.exe to auto-sort all desktop shortcuts to the far-left margin upon user session initialization.
Diagnostic Verification:
1Right-click an empty area on the desktop, hover over View, and verify if Auto arrange icons is unchecked.
2Open regedit and navigate to:
HKCU\Software\Microsoft\Windows\Shell\Bags\1\Desktop
3Inspect the FFlags DWORD value. If bit 0 is toggled on (e.g., value ends in 1 or displays 0x40000021), forced auto-arrange is verified.
Step-by-Step Fix:
1Disable Auto Arrange via Context Menu & Force Save:
Right-click desktop > View > ensure Auto arrange icons is UNCHECKED.Ensure Align icons to grid is CHECKED.2Modify Shell Desktop Registry Flags:
Press Win + R, type regedit, press Enter.Navigate to: HKCU\Software\Microsoft\Windows\Shell\Bags\1\DesktopDouble-click FFlags and set its Value data to 1073741828 (Hexadecimal: 40000004). This explicitly sets Auto Arrange to OFF while leaving Align to Grid ON.Navigate to: HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AdvancedEnsure HideIcons is set to 0.3Restart Explorer Shell cleanly to commit registry state:
Open Command Prompt as Administrator and execute: taskkill /f /im explorer.exe & start explorer.exe
Prevention & Long-Term Monitoring:
Avoid force-killing explorer.exe via Task Manager immediately after moving icons, as Windows writes icon positions to disk during clean shell shutdowns.