Windows desktop fix

Why do my desktop icons rearrange every time I unplug a monitor?

Windows doesn't remember icon positions across monitor changes. The moment a DisplayPort/HDMI monitor turns off or disconnects, Windows reflows every icon to fit the smaller desktop — and when the monitor comes back, it doesn't restore the original layout. There's no built-in setting to stop this.

Download PowerDoze More use cases →

Why does Windows do this?

Desktop icons live inside the total screen space that's currently available. When a monitor disconnects, that space shrinks and Windows immediately reflows every icon to fit what's left, so nothing ends up stranded off-screen — overwriting their positions in the process. Reconnecting the monitor grows the canvas back, but Windows has no memory of where things used to sit. It just leaves icons wherever the last reflow put them, and you're stuck manually dragging everything back into place — again.

Manual ways to deal with it — and why they're incomplete

Method Setup Survives repeated disconnects? Manual work needed
Re-arrange icons by handNone❌ No — redo every timeEvery disconnect
"Auto arrange icons" (Windows built-in)Toggle in right-click menu⚠️ Prevents scatter, doesn't preserve custom layoutNone, but layout isn't yours anymore
PowerDoze Desktop Layout GuardOne toggle✅ Yes — automaticOnly the first save

Re-arrange manually, every time

Drag every icon back where it belongs after each disconnect/reconnect cycle. Windows' "Auto arrange icons" option (right-click desktop → View) stops icons from scattering randomly by snapping them into a tidy grid instead — but that's a consistent re-sort, not a memory of your specific layout. Your custom arrangement still doesn't come back.

Best for: Rare, one-off disconnects. Limit: If you dock/undock a laptop daily or toggle a second monitor often, this is a repeat chore.

PowerDoze Desktop Layout Guard (automatic)

Turn it on once. It snapshots your icon positions every 10 minutes while all monitors are connected, plus instantly whenever you add, delete, or rename a desktop icon, plus on demand via a manual Save button. The moment your monitor count returns to the highest it's ever seen, it restores every icon to its saved spot — matching by icon name, with a few automatic retries to ride out Windows still settling the display change.

It reads and writes icon positions the same way Windows Explorer itself does — no code injection, nothing that looks like malware to antivirus software.

Best for: Anyone who regularly docks/undocks a laptop or switches monitor setups. Honest limit: PowerDoze needs to be running to catch the disconnect event — if it wasn't, just hit Save once you've tidied up again to set a new baseline.

Download PowerDoze See Free vs Pro →

Frequently asked questions

Why do my desktop icons move every time I disconnect a monitor?

Windows lays out icons within the screen space currently available. When a monitor disconnects, that space shrinks and Windows reflows every icon to fit, overwriting their positions. Reconnecting doesn't restore the original layout — Windows has no memory of it.

Is there a built-in Windows setting to stop this?

No. "Auto arrange icons" prevents scattering by re-sorting into a tidy grid every time, but that's not the same as remembering your custom layout.

How does PowerDoze fix this?

Desktop Layout Guard snapshots your icon positions periodically and on changes, then restores them automatically once your monitor count returns to normal, matching icons by name.

What if PowerDoze wasn't running when I disconnected the monitor?

It needs to be running to catch the event. If you missed it, press the manual Save button once you've rearranged things to set a fresh baseline.

Does this work with three or more monitors?

Yes — it tracks total monitor count, not just a two-monitor case, and restores whenever the count returns to its highest-ever value.

What happens if I rename or delete a desktop icon?

Icons are matched by name. A renamed icon is treated as new and won't be restored to its old spot — save again after renaming. A deleted icon's saved position simply goes unused.

Desktop Layout Guard is a PowerDoze Pro feature (one-time purchase, not a subscription) — it also gives you manual Save/Restore buttons for on-demand snapshots.

See what's included in Pro

See also: More use cases · All features