TECH / Windows 3 min read

Desktop Shortcuts Disappearing in Windows 7 & 10: Why Network Icons Vanish and How to Stop It

Antonio NEMCD Author
Published Dec 29, 2012 · 3 min

Office users and system administrators often encounter a baffling quirk in Windows 7 (and later Windows 8/10): desktop icons begin vanishing on their own overnight. Even stranger, local shortcuts stay untouched while shortcuts pointing to programs, databases, or shared folders on network drives and servers (paths like \\server\share\... or mapped drives like Z:\) – as well as shortcuts to removable USB drives – silently disappear.

Fixing disappearing desktop shortcuts in Windows 7

This is not malware or an accidental press of the Delete key. The culprit is Microsoft’s built-in System Maintenance Troubleshooter. On a weekly schedule (typically early Wednesday morning or during idle time), Windows scans the desktop for broken links. If it finds more than 4 unreachable shortcuts at that moment – for instance, because a file server was rebooting, a laptop was booted at home off the office LAN, or a mapped drive had not reconnected yet – Windows assumes they are dead shortcuts and silently deletes them without sending them to the Recycle Bin.

Method 1. Disable Automatic Maintenance Cleanup in Control Panel

To stop Windows from automatically pruning your desktop icons, turn off scheduled computer maintenance in Control Panel:

Control Panel System and Security Troubleshooting screen in Windows 7

  1. Open Start -> Control Panel (if the top-right View by menu is set to Small icons, switch it to Category, or click Troubleshooting directly).
  2. Under System and Security, click Find and fix problems (Troubleshooting).
  3. In the left sidebar, click Change settings.
  4. Under Computer Maintenance (which states that Windows will check for common issues and fix them automatically), select the Off radio button and click OK.

Turning off Computer Maintenance in Windows 7 Troubleshooting settings

Direct Run command (if Control Panel categories look different): several readers mentioned not seeing the System and Security label on their Windows edition. Press Win + R, paste the command below, and press Enter to jump straight into the Troubleshooting applet on any version of Windows:

control.exe /name Microsoft.Troubleshooting

Then click Change settings on the left and switch Computer Maintenance to Off.

Method 2. Disable the Diagnosis Scheduled Task via Command Prompt or GPO

If you manage multiple office workstations and want to disable broken-shortcut cleanup in one second without clicking through menus, disable the underlying Task Scheduler job directly:

  • One-line Administrator Command Prompt fix: launch cmd.exe as Administrator and run:
    schtasks /Change /TN "\Microsoft\Windows\Diagnosis\Scheduled" /Disable
  • Via Task Scheduler GUI (taskschd.msc): expand Task Scheduler Library -> Microsoft -> Windows -> Diagnosis, right-click the Scheduled task, and choose Disable.
  • Via Group Policy (gpedit.msc for corporate domains): open Computer Configuration -> Administrative Templates -> System -> Troubleshooting and Diagnostics -> Scheduled Maintenance and set Configure Behavior to Disabled (or Detection Only).

Once disabled, all your network drive shortcuts, UNC paths, and external drive icons stay right where you put them on the desktop even when the target server is offline.

Related posts:

Leave a Comment