On Windows, desktop.ini sits inside folders it customizes—most commonly your Desktop, Documents, and other user folders.
Windows stores a tiny settings file named desktop.ini inside many folders. It tells File Explorer how a folder should look or behave, like which icon to show or what name to display. It’s hidden and marked as a system file, so you won’t see it until you ask Windows to reveal protected items. This guide shows where it lives, why you’ll find more than one, and the fastest ways to locate every copy on your PC.
What This File Does And Why It’s Everywhere
Each folder can carry its own view rules. That’s what this file delivers: a small INI with directives for that specific folder. Because many folders ship with custom settings, you’ll spot multiple copies across your profile. Two places catch most people off guard:
- Your personal desktop folder under your user profile.
- The shared desktop folder under the Public profile, which shows items to all users.
Those two desktops merge visually on the screen, so you effectively get content from both. Each can carry its own configuration file.
How To Reveal The File In File Explorer
You need two toggles: show hidden items and show protected system files. Here’s the quick path on recent Windows versions:
- Open File Explorer (Win + E).
- Go to View > Show > Hidden items.
- Open Options (three dots > Options) → View tab.
- Uncheck Hide protected operating system files (Recommended), then confirm.
Now browse to common spots like Desktop, Documents, and Downloads. You’ll start seeing the file inside many customized folders. If you prefer command line, jump to the quick searches below.
Desktop.ini File Location Variations Across Windows
There isn’t just one master copy. The file lives in the folder it controls. That’s why the path changes per folder. Expect to find it in these common places on a typical PC:
- The user desktop:
%USERPROFILE%\Desktop\desktop.ini - The shared desktop:
%PUBLIC%\Desktop\desktop.ini - Personal libraries:
%USERPROFILE%\Documents,%USERPROFILE%\Downloads,%USERPROFILE%\Pictures, each often holds its own copy - Any folder with a custom icon or localized name: if a folder uses a custom
iconor language name, you’ll usually see the INI inside it
The file is tiny and safe to leave alone. Deleting it doesn’t remove your data, but it can undo folder customizations. When a folder needs special behavior again, Windows regenerates it.
Fast Ways To Find Every Copy On Your Drive
Use these one-liners when you want a complete list. Run them from an elevated terminal if you’re scanning system areas.
Command Prompt Search
dir C:\desktop.ini /a /s
This scans the entire C: drive for every match, including hidden and system files (/a) and subfolders (/s).
PowerShell Search
Get-ChildItem -Path C:\ -Filter desktop.ini -Force -Recurse
-Force includes hidden and system items; -Recurse walks through subfolders. Pipe to Select-Object FullName if you only want the paths:
Get-ChildItem C:\ -Filter desktop.ini -Force -Recurse | Select-Object FullName
What The Attributes Mean
Two attributes hide the file from casual view: Hidden and System. The classic attrib command shows or changes them. To see attributes in the current folder:
attrib
To clear hiding temporarily on a specific copy:
attrib -s -h "C:\Path\To\A\Folder\desktop.ini"
Put the attributes back when you’re done:
attrib +s +h "C:\Path\To\A\Folder\desktop.ini"
If you’re curious about the full syntax and switches, Microsoft’s reference for the attrib command explains flags like /s and /d in detail. Link: attrib command.
Typical Paths You’ll Encounter
Here are the folders most users ask about, along with what the file inside actually controls. Use these as quick checkpoints during a search.
Personal Desktop
Path: %USERPROFILE%\Desktop\desktop.ini
Controls your user’s desktop view. If you tweak icons or localized names for items that live on your own desktop, that copy carries the rules.
Shared Desktop
Path: %PUBLIC%\Desktop\desktop.ini
Controls the shared items visible to every account on the machine. Admins use the Public desktop to pin shortcuts for all users.
Documents, Pictures, Videos, Music
Paths: %USERPROFILE%\Documents, %USERPROFILE%\Pictures, %USERPROFILE%\Videos, %USERPROFILE%\Music
These often carry custom folder types (Documents vs. Pictures, etc.). The INI helps File Explorer present the right template and icon.
Downloads
Path: %USERPROFILE%\Downloads
May contain settings for that folder’s default view and icon. If the INI is missing, Windows can recreate it when the folder needs customization again.
How The File Stores Settings
Inside the file, you’ll see sections like [.ShellClassInfo] with keys that point to icons, localized names, or folder behaviors. Developers and power users sometimes edit these values by hand for targeted tweaks. Microsoft’s guide shows supported keys and behaviors with examples. Link: Customize folders with desktop.ini.
Safe Handling Tips
- Leave attributes as they are. The Hidden + System combo keeps everyday browsing clean.
- Deleting a copy usually only resets that folder’s look. If you remove it by mistake, restoring attributes or reapplying a custom icon brings it back.
- If you need to transfer folder customizations to another PC, copy both the folder and its INI, then ensure the folder is read-only so Windows processes the settings.
- Use quotes around paths with spaces when running commands.
Quick Troubleshooting When You Don’t See It
Not seeing the file even after enabling hidden items? Check these points:
- Protected files still hidden: In Folder Options, confirm the checkbox for “Hide protected operating system files” is unchecked.
- The folder has no custom rules: If a folder never had a custom icon or special view, Windows might not bother creating the INI yet.
- Permissions: System folders may require admin rights to view or change attributes.
- OneDrive redirection: If Desktop or Documents are synced, your paths might be under
%USERPROFILE%\OneDrive\. Search there too.
Table Of Common Locations And What They Control
The table below sums up frequent paths and the kind of customization each file typically holds.
| Folder Path | Why It Exists | Notes |
|---|---|---|
%USERPROFILE%\Desktop\desktop.ini |
Rules for the signed-in user’s desktop view and naming. | Pairs with the Public desktop copy; both surfaces appear on screen. |
%PUBLIC%\Desktop\desktop.ini |
Settings for items shown to all users on the machine. | Admins place shortcuts here to appear for everyone. |
%USERPROFILE%\Documents (and other libraries) |
Template, icon, and display hints for that folder type. | Windows can recreate it when a template or icon is applied. |
Copy-Paste Commands You Can Use
These quick blocks help you reveal, inspect, and tidy up attributes without hunting through menus.
List Every Copy On C:
dir C:\desktop.ini /a /s > "%USERPROFILE%\Desktop\desktop_ini_list.txt"
This writes a complete list to your desktop for easy review.
Show Attributes For A Specific File
attrib "C:\Path\To\A\Folder\desktop.ini"
Temporarily Unhide, Then Rehide
attrib -s -h "C:\Path\To\A\Folder\desktop.ini"
REM …make your change…
attrib +s +h "C:\Path\To\A\Folder\desktop.ini"
PowerShell: Find All Copies Under Your Profile
Get-ChildItem "$env:USERPROFILE" -Filter desktop.ini -Force -Recurse |
Select-Object FullName, Attributes
When You Might Edit It
Two common tweaks are setting a custom icon and assigning a localized display name. Many users prefer doing this through folder properties, which saves the correct keys into the file for you. If you edit by hand, keep a backup and restore attributes afterward so File Explorer applies the change.
Answers To Common “Where Is It?” Scenarios
“I See Two Desktop Folders”
That’s expected. One lives under your user profile and the other under the Public profile. Both feed the screen you call “Desktop.” Each folder can have its own configuration file.
“I Deleted One—Did I Break Anything?”
Your files are fine. You may lose a custom icon or a localized name in that folder. Reapply the customization, and Windows creates a fresh copy.
“I Can’t Find It Anywhere”
Run the searches near the top of this guide. Also check redirected paths if Desktop, Documents, or Pictures live under OneDrive. The file sits inside the folder it configures, not in a central system folder.
Reference Links For Deeper Detail
If you want exact keys, examples, and attribute flags, these Microsoft pages are handy reads mid-way through this task:
Takeaways
- The file lives inside the folder it controls, so paths vary.
- Expect separate copies in your user and Public desktop folders.
- Use File Explorer toggles or the command lines here to reveal every instance.
- Leave attributes as Hidden + System when you’re done.
