Computers & printers
Good news first: your files are still there. The icons are just hidden.
Right-click an empty spot on the desktop, hover over "View," and make sure "Show desktop icons" has a checkmark next to it. If it doesn't, click it once and everything comes back.
On Windows 11, you can also control which system icons appear: go to Settings > Personalization > Themes > Desktop icon settings and tick the boxes for the icons you want (like This PC and Recycle Bin). On a Mac, desktop icons are managed under Finder settings — but this “everything vanished” problem is mostly a Windows thing.
On a Mac, the fuller version: click the desktop, then open Finder > Settings > General and tick the things you want shown — your hard disk, CDs and DVDs, and connected drives. If your Mac instead tidies files into little piles along the right edge, those are Stacks: right-click the desktop and untick Use Stacks to spread everything out as individual icons again.
Icons back, but a jumbled mess? On Windows, right-click the desktop, choose View, then Auto arrange icons — they line up in tidy rows. You can still drag your favorites afterward.