From LedHed's Wiki
Jump to: navigation, search

Overview

I came across a strange situation where a folder in Windows Explorer was named "My Documents" and at the same time from the command line it showed as Private. The folder was actually named "Private" but Explorer will display a different name in certain situations. In this case the folder properties said it was marked "Read Only", and inside that folder it had a desktop.ini file. In this scenario Explorer uses the info in desktop.ini for the folders display name.

Fix

1) you could try to delete the desktop.ini (but this is useless as it seems to always come back). 2) you could remove the "Read Only" attribute, but thats not always ideal. 3) you create a reg Reg_SZ under HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\ named "UseDesktopIniCache" and set its value = 0

Option 3 tells the computer to stop creating the desktop.ini file.

You can create a GPO for this as well.


Reference

http://mike-graham.co.uk/blog/2014/05/09/disable-desktop-ini/

https://superuser.com/questions/381110/windows-explorer-sees-different-file-name-from-cmd