Folder itself need "Read only" attribute to "apply" settings defined in desktop.ini xcopy has removed the original "Read Only" attribute.
I checked, and the box was still checked But how can I prevent the attribute from being "modified" ? Thanks
@migascalp Same problem with robocopy and this command robocopy D:\Utilitaires\Sauvegarde\Favorites C:\Users\tistou\Favorites /s /e The attribute doesn't change, I think (same as before) Thanks for your help
I think I found it Try Code: xcopy D:\Tests\Favorites C:\Users\tistou\Favorites /s /e /h attrib +r -s -h C:\Users\tistou\Favorites /S /D
I think the "/S" argument is superfluous, and shouldn't be included at the attrib operation. There is no need for: My two cents. Thank you.
@migascalp I tested this and it's good Code: xcopy D:\Tests\Favorites C:\Users\tistou\Favorites /e attrib +r -s -h C:\Users\tistou\Favorites /s /d Thanks so much
I encountered a similar problem when editing one of my scripts. Code: REM Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Desktop" /t REG_SZ /d "%LDRIVE%:\%USERNAME%\Desktop" /f >nul 2>&1 REM Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Desktop" /t REG_EXPAND_SZ /d "%LDRIVE%:\%USERNAME%\Desktop" /f >nul 2>&1 REM Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{754AC886-DF64-4CBA-86B5-F7FBF4FBCEF5}" /t REG_EXPAND_SZ /d "%LDRIVE%:\%USERNAME%\Desktop" /f >nul 2>&1 rd /s /q "%USERPROFILE%\Desktop" mklink /j "%USERPROFILE%\Desktop" "%LDRIVE%:\%USERNAME%\Desktop" attrib +r "%USERPROFILE%\Desktop" /l Icacls "%USERPROFILE%\Desktop" /reset /t >nul icacls "%USERPROFILE%\Desktop" /grant "%USERNAME%":f /q /c /t >nul I had to dig deeper to find problem. It's read-only attribute of destination folder. Apparently, whether or not custom icon (desktop.ini) is displayed depends on this attribute. In my script, read-only attribute of link. In your case, xcopy command resets this attribute and set Archive. So: Code: xcopy D:\Tests\Favorites C:\Users\tistou\Favorites /e attrib +r C:\Users\tistou\Favorites
Code: attrib +r -s -h C:\Users\tistou\Favorites /s /d I started with this command. Only read-only attribute affects icon display. Then I tried 'attrib -r' with 50 folders with custom icons. Icons disappeared. With 'attrib +r' they reappeared. Finally, no, archive attribute does not affect display of custom icon.
Hello I'm using Win11 IoT Enterprise v24H2 and the Log out menu looks like your first and last screenshots (without the awful Microsoft account banner). Of course I use a local account, like you do.
ok, you're right. installed 2 new vms and both iot ent. and iot ent. ltsc have the (let's say) old one like edu and server. interesting...
Great, have you tried also install (or just change edition with MAS) Win11 Enterprise??? Maybe that edition doesn't have the "awful"/"new" log out menu...
I tried both clean install and edition change by adding iot key. for the clean install the old log out menu is obviously already there. for the edition change, as soon as you make the switch, the logout menu revert to the old one without even a reboot.