Hi everyone,
I'll start with a confession: I registered to this forum specifically to share this solution. That's how much this bug has been driving me crazy. The original post is two years old and people were still complaining about it in late 2025 — so I know I'm not alone in this particular circle of hell.
After years of silently suffering, I decided to actually investigate. With the help of several AI assistants (shoutout to Claude and Copilot — they argued a lot but eventually got there), a hex editor, a forensic LNK parser, and more trial and error than I care to admit, we found the root cause.
The culprit: Windows 11 stopped setting a flag called DisableKnownFolderTracking in newly created shortcuts. Without it, Explorer resolves the target through the shell namespace instead of the filesystem, which completely bypasses tree expansion. Windows 10 set this flag correctly. Windows 11 doesn't.
The fix: a small Python script (Python 3, no dependencies) that patches the two affected bits directly in the shortcut's binary header. That's it — no registry hacks, no third-party tools, no "Show all folders" nuclear option.
One important caveat: set your shortcut icon
before patching, and don't touch it afterwards — editing the icon via Properties rewrites the header and removes the patch.
Usage is simple:
# Patch in place
python shortcut_patcher.py "MyShortcut.lnk"
# Or patch to a new file
python shortcut_patcher.py "MyShortcut.lnk" "MyShortcut_fixed.lnk"
I'm attaching the script (shortcut_patcher.py) and instructions (shortcut_patcher.txt) in a zip file.
This is free to use, modify, and integrate into a more user-friendly tool for people who don't use Python — a GUI wrapper, a shell extension, whatever. I'd just love to know if that happens!
Hope this saves someone else a few years of frustration.
And let me know if that does work for you.