Windows 10 Desktop.ini Files Appearing on Desktop: Hiding Those Strange Settings Files
Two files called desktop.ini have appeared on your desktop with gear-like icons. You delete them, and they come back after a restart. Similar files may show up in other folders too. When Windows 10 desktop.ini files appearing on desktop clutter your screen, it is not a virus; it means PAGODA127 RESMI Windows is showing files it normally hides.
Desktop.ini files store folder customisations, such as a custom icon, a localised folder name, or view settings. Windows creates them in many folders, including the desktop, which actually combines your personal desktop folder and the public desktop folder, so two files appear.
They are marked as protected system files. You only see them when “Hide protected operating system files” has been turned off, often while following a guide or using a tweak tool.
Turning that option back on hides them again without deleting anything.
Why This Happens
Desktop.ini files become visible for these reasons:
- “Hide protected operating system files” is turned off in Folder Options.
- A tweak or cleanup tool changed the hidden file settings.
- Files were copied from another PC with settings that showed them.
- A sync tool such as OneDrive copies desktop.ini between devices.
Deleting them is pointless, since Windows recreates them as soon as it needs to store folder settings.
Start With These Basic Checks
Hide protected files again.
- Open File Explorer and select View > Options > Change folder and search options.
- Open the View tab.
- Tick “Hide protected operating system files (Recommended).”
- Select Apply and OK.
- Press F5 on the desktop to refresh it.
If you need to see normal hidden files, you can keep “Show hidden files” on while protected files stay hidden.
Going a Step Further
Handle files that still show.
- If a desktop.ini still appears, it may not have the System attribute.
- Open Command Prompt and type attrib +s +h “%UserProfile%\Desktop\desktop.ini” and press Enter.
- Do the same for C:\Users\Public\Desktop\desktop.ini from an administrator prompt.
- If OneDrive syncs desktop.ini between devices, leave them hidden rather than deleting them.
- Restart Explorer from Task Manager.
Check the files with antivirus only if they appear in unusual places with odd sizes, since genuine desktop.ini files are small text files.
A Word of Caution
Keep protected system files hidden in daily use to avoid deleting something important by accident. Do not edit desktop.ini contents unless you know exactly which setting you are changing.
Final Thoughts
Desktop.ini files appear when Windows shows protected system files. Turn “Hide protected operating system files” back on, re-apply the system and hidden attributes if needed, and leave the files in place.