Just fyi @JenMsft just got reminded of a funny quirk in windows explorer:

When you create a shortcut to e.g. your homedrive on the desktop. Then at next login you do so without network connectivity (e.g. windows doesn't automatically connect it) followed by clicking on that shortcut it causes two things:
1) Windows will automatically connect the homedrive now.
2) Windows claims the link is invalid as the homedrive does not exist and asks to delete it (despite it just now auto reconnecting it).

@JenMsft

[for context only]
Got reminded about this as I use it to work around issues caused by a customer having decided to hide the "wifi connection" dialog on the login screen but demanding that you connect to their VPN before logg-in to windows.

(And for some reason also having broken the auto-reconnect of the wifi, probably a GPO thing even though it surfaced after the last round of updates...)

@agowa338 @JenMsft #2 is extra annoying and propably wasted MILLIONS of #TechSupport #PersonnelHours because on #Unix-esque systems that shit doesn't really happen, but on #Windows this is a known wrongness since at least #WindowsNT 3.51…
Klaus Frank (@[email protected])

Just fyi @[email protected] just got reminded of a funny quirk in windows explorer: When you create a shortcut to e.g. your homedrive on the desktop. Then at next login you do so without network connectivity (e.g. windows doesn't automatically connect it) followed by clicking on that shortcut it causes two things: 1) Windows will automatically connect the homedrive now. 2) Windows claims the link is invalid as the homedrive does not exist and asks to delete it (despite it just now auto reconnecting it).

chaos.social

@kkarhan @JenMsft

How does this waste tech support hours that it shows this "do you want to delete this shortcut?" question?
(The more annoying one is when you've filled your desktop with such shortcuts and it runs that dump "invalid shortcut cleanup" powershell script that deletes all of them WITHOUT asking for confirmation once they exceed a hardcoded threshold)

Or do you mean the issue of the home drive not connecting when logging in without network connectivity?

@agowa338 @JenMsft the problem is that it's not just misleading, but #TechIlliterates WILL CLICK THAT OPTION and then complain at #TechSupport that they can't find said shortcut anymore!

@kkarhan @JenMsft

That dialog isn't misleading. If you click "yes", it will actually delete the shortcut.

That dialog does what it says it does. However I just think it is funny that windows does both instead of just picking one.

Like if it didn't autoconnect the Homedrive fine, I can see how a shortcut to "H:\" is being considered as invalid and why it asks to delete it.

Same for it auto connecting it once you click on it as it apparently knows the network path internally and is able to

@agowa338 @JenMsft the problem is that this shortcut should not be delete-able to begin with!

  • Or at least not spit out such a misleading error when reconnecting.
    • If I want to delete a shortcut, it should just offer me that option like with files as an explicit action.
    • If it's not yet connected it should attempt connecting in the background and only complain if it can't!

It's just absurd that #Microsoft refuses to unfuck this mess

@kkarhan @JenMsft

I think you're barking up the wrong tree. This dialog is fine. It mainly informs the user that the shortcut is broken.

In this case it probably is a race condition between windows trying to "fix it" (the service that finds moved files and fixes shortcuts to them was added later after all) and it telling you it is broken

The automatic cleanup which deletes ALL shortcuts to network files (as it runs before the system has network) is more of an annoyance once it gets triggered

@kkarhan @JenMsft

But hitting the issue with that automatic dead shortcut cleanup script is also quite rare. So I'm not even entirely sure you actually know what I'm talking about right now.

@agowa338 @JenMsft yes .am, because I literally had #TechIlliterates create at least two tickets each day with that issue under #Windows.

@kkarhan @JenMsft

Well apparently Microsoft even published a Hotfix for it. Don't know why they never integrated it into any version of windows though.

Back then when I still worked as Sysadmin I just patched that script in our golden image by hand to remove that section that deletes the desktop shortcuts to keep all other cleanup functionalities it does working.

https://support.microsoft.com/en-gb/topic/broken-shortcuts-are-deleted-from-the-desktop-in-windows-7-6782ea4e-6597-1af2-034c-49548a6e6b05

Broken shortcuts are deleted from the desktop in Windows 7 - Microsoft Support

Fixes an issue in which broken shortcuts are deleted from the desktop on a computer that is running Windows 7. This issue occurs if you run the System Maintenance troubleshooter on the computer. Additionally, you receive an offer to delete unused desktop icons.

@agowa338 @JenMsft Sorry, but that came >15 years too late...

@kkarhan @JenMsft

And it is only for Windows 7. I know for a fact that this bug also existed in at least windows 10.

So it probably never made its way into the codebase and therefore still exists to this day even in windows 11 (I bet)

@agowa338 @JenMsft which makes this even worse