Desktop Shortcuts Disappearing in Windows 7 & 10: Why Network Icons Vanish and How to Stop It
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.

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

