Windows 11 Tweaks, Fixes and Modifications [Overview]

Discussion in 'Windows 11' started by Enthousiast, Jul 1, 2021.

  1. sonic9

    sonic9 MDL Member

    Aug 4, 2009
    198
    81
    10
    Folder itself need "Read only" attribute to "apply" settings defined in desktop.ini
    xcopy has removed the original "Read Only" attribute.
     
  2. tistou77

    tistou77 MDL Guru

    Mar 22, 2008
    2,055
    675
    90
    I checked, and the box was still checked
    But how can I prevent the attribute from being "modified" ?

    Thanks
     
  3. tistou77

    tistou77 MDL Guru

    Mar 22, 2008
    2,055
    675
    90
    Thanks, I'll try
     
  4. tistou77

    tistou77 MDL Guru

    Mar 22, 2008
    2,055
    675
    90
    @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)

    Attrib.PNG

    Thanks for your help
     
  5. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    7,232
    8,825
    240
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. migascalp

    migascalp MDL Addicted

    Sep 18, 2009
    520
    889
    30
    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
     
  7. tistou77

    tistou77 MDL Guru

    Mar 22, 2008
    2,055
    675
    90
    Thanks for your help, I'll test
     
  8. NewEraCracker

    NewEraCracker MDL Senior Member

    Apr 19, 2011
    271
    400
    10
    #1950 NewEraCracker, May 30, 2025
    Last edited: May 30, 2025
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. tistou77

    tistou77 MDL Guru

    Mar 22, 2008
    2,055
    675
    90
    @migascalp I tested this and it's good :yeahyeah:
    Code:
    xcopy D:\Tests\Favorites C:\Users\tistou\Favorites /e
    attrib +r -s -h  C:\Users\tistou\Favorites /s /d
    Thanks so much ;)
     
  10. migascalp

    migascalp MDL Addicted

    Sep 18, 2009
    520
    889
    30
    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
     
  11. tistou77

    tistou77 MDL Guru

    Mar 22, 2008
    2,055
    675
    90
    If it's not set Archive, it's fine I guess ?

    Doc.PNG
     
  12. migascalp

    migascalp MDL Addicted

    Sep 18, 2009
    520
    889
    30
    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.
     
  13. efferatum

    efferatum MDL Novice

    Aug 28, 2009
    12
    3
    0
  14. June's Hill

    June's Hill MDL Member

    Jul 1, 2021
    101
    131
    10
    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.
     
  15. efferatum

    efferatum MDL Novice

    Aug 28, 2009
    12
    3
    0
    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...
     
  16. June's Hill

    June's Hill MDL Member

    Jul 1, 2021
    101
    131
    10
    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...
     
  17. efferatum

    efferatum MDL Novice

    Aug 28, 2009
    12
    3
    0
    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.