Reader Mail: Windows 7 and the Disappearing Desktop Shortcuts

Now isn't your desktop much cleaner? You can thank me later. Scott B., from Greenville, Ohio, wrote in regarding an issue with Windows 7 nuking his desktop shortcuts. More specifically, the System Maintenance (troubleshooting platform-powered) task was firing up and deleting “broken shortcuts” as he had exceeded the 4 broken shortcuts limit. (The deletion of anything automatically is a disaster waiting to happen.) In Scott’s case, Windows had detected his disconnected network location shortcuts as “broken” and wiped them out due to the lack of detailed shortcut metadata returned from WMI’s Win32_ShortcutFile class. Whoops.

TS_BrokenShortcuts.ps1 file, opened for editing.

While I would personally dispense of the dangerous task, Scott was focused on upping the hard-coded limit – from 4 to something higher. This is pretty easy to do. Simply navigate to %windir%DiagnosticsScheduledMaintenance 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, and pat yourself on the back for a job well done.

Have a Windows 7 quirk that’s driving you nuts? Feel free to email me (bottom of aforelinked page).