Jump to content

Recommended Posts

Posted

Hi,

 

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?

Posted

Either add the filename view Column when viewing users folders on the server (this will display the owner of the folder) or structure your Home directories correctly - Home directory/My documents

 

I'm Not keen on changing attributes for the desktop.ini as it may cause issues.

Posted

Hi,

 

This page might be of use to you .... delete desktop ini. Shows how to delete it using batch command. You can then attach it to a scheduled task to run occasionally.

 

I tend to add the filename in the view column myself although have used the script in the link above.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...