Windows 7 Folder Redirection, Homeshare Renamed to My Documents
As loads of you have probaly seen...
when you use folder redirection on the homeshare as documents it renames the users homeshare to my documents server side, you can still access it by going \\staff\data\%username% but when you look at them it comes up as a continuous list of my document folders, i know you can remove the desktop.ini ... but we dont want it as a logon or logoff script we want it to be a scheduled task.. the batch file i have created at the moment is:
ECHO Y | del "\\Staff\Data\desktop.ini" /S /A:H
but this deletes all desktop.ini including the ones in the home share for pictures music ect..
i have hurd that you can just changed the permisions on the desktop.ini file to some thing like:
FOR /F "tokens=1 delims= " %a in ('dir /b "\\staff\data\"') DO XCACLS "\\staff\data\%a\desktop.ini /D Administrator:R /Y"
would this work?