Troubleshooting Windows 7's "disappearing desktop shortcuts"

Scott B. wrote in regarding an issue with Windows 7 nuking his desktop shortcuts. More specifically, the System Maintenance task was firing up and deleting “broken shortcuts” as he had exceeded the 4 broken shortcuts limit. In Scott’s case, Windows had detected his disconnected network location shortcuts as “broken” and wiped them out due to […]

Scott B. wrote in regarding an issue with Windows 7 nuking his desktop shortcuts. More specifically, the System Maintenance task was firing up and deleting “broken shortcuts” as he had exceeded the 4 broken shortcuts limit. In Scott’s case, Windows had detected his disconnected network location shortcuts as “broken” and wiped them out due to lack of detailed shortcut metadata returned from WMI’s Win32_ShortcutFile class. Scott was focused on upping the hard-coded limit – from 4 to something higher ‘simply navigate to %windir%\Diagnostics\Scheduled\Maintenance and open the TS_BrokenShortcuts.ps1 file for editing. Search for the substring “-gt 4” and change the 4 to… something else as desired. Save, close all open windows.

[Source]