Show Desktop in Windows 10/11: Win+D, Not a Scripted Icon

Updated

Don’t build the file this page used to teach. The trick was: paste [Shell] Command=2 IconFile=explorer.exe,3 [Taskbar] Command=ToggleDesktop into Notepad and save it as Show Desktop.scf. That extension is Shell Command File, and SCF is the format Microsoft patched in October 2017 (advisory ADV170014) after researchers showed that an SCF file triggers an SMB request to whatever path is in its icon field the moment the file becomes visible in a folder — no double-click needed. Malwarebytes Labs’ account of the flaw, still live today:

“Windows Explorer Shell Command File are basically shortcuts with a run command. […] This extension is invisible even if you have your extensions set to show. […] SCF files can be configured to contact a server with a request for resources” — and that request can leak the current user’s NTLM password hash to an attacker-controlled server.

Making one by hand, as the old instructions did, isn’t a security hole by itself — the file has to point somewhere malicious to do damage, and this one points at explorer.exe. But it teaches the mechanics of a file type Microsoft had to patch specifically because it fires network requests unattended, for an operating system that stopped receiving any security patches on January 14, 2020 — that exact date is Microsoft’s own wording, from its FAQ about the end of support for Windows 7. A Windows 7 machine reading this today gets no fix for anything found in the six and a half years since. If you’re on Windows 10, that operating system reached its own end of support on October 14, 2025; see the Windows 10 overscan page for the Extended Security Updates option, quoted from Microsoft, before you do anything else on that machine.

What actually shows the desktop today

Windows 10 and 11 both ship this natively — nothing to build. Microsoft’s keyboard shortcuts page lists it in the Windows-key table exactly like this: Windows key + D → “Display and hide the desktop.” Press it again to bring your windows back.

If you want a permanent taskbar target instead of a shortcut key, it’s a built-in toggle, not a file you author. Microsoft’s Customize the taskbar page documents it under Taskbar behaviors: the option to “Select the far corner of the taskbar to show the desktop” — that’s the thin strip at the right edge of the taskbar, right of the clock. Turn it on and clicking (or hovering, for a peek) that corner does what the old page’s Notepad file was trying to fake.

What I checked and what I didn’t

Verified today by fetching the vendor pages directly: the Windows 7 end-of-support date, the exact wording of the Win+D shortcut, and the exact wording of the taskbar-corner setting — all three are quoted above from Microsoft’s live pages, and the script below re-fetches and greps for each string. The SCF/SMB mechanism is quoted from Malwarebytes Labs, not Microsoft, because Microsoft’s own advisory page (MSRC ADV170014) renders empty to a non-browser client; I’m not going to assert its wording without having read it. Nothing about Windows 10 or 11’s actual UI was operated — there’s no Windows install on this machine — so if a specific build has moved the taskbar-corner toggle, this page won’t catch that; only the vendor documentation was checked.

Check this yourself. Every command and every block of output on this page is reproduced by /verify/add-show-desktop-icon-to-taskbar.sh. Download it and run it: it creates its own scratch files, prints one line per claim, cleans up after itself, and exits non-zero if any claim here turns out to be wrong. If it disagrees with this page, the page is wrong.

Photo of author
Sudhir P. founded HeatWare.com in 1999 and has built and operated it full-stack ever since; it is now used by more than 88,000 people. He writes here about the PostgreSQL, MySQL, Linux and DevOps work that keeps it running. Articles are rewritten only after the commands in them have actually been run, and the verification scripts are published alongside them so anyone can check the claims. Reach him at blog@heatware.net.