+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 42
Windows Server 2008 Thread, Home folders renames to My Documents in Technical; Originally Posted by rpwillis I've written a PowerShell script which denies read access to the desktop.ini file to a specified ...
  1. #16
    bmdixon's Avatar
    Join Date
    Apr 2008
    Location
    Birmingham
    Posts
    253
    Thank Post
    41
    Thanked 57 Times in 38 Posts
    Rep Power
    22
    Quote Originally Posted by rpwillis View Post
    I've written a PowerShell script which denies read access to the desktop.ini file to a specified group. Anyone in this group will then not have the documents renamed.

    Richard Willis – SharePoint Learning Kit Coordinator, SalamanderSoft Owner » How To Stop Home Folders Being Renamed Documents in the Network Share
    Thank you!! It's worked brilliantly.

  2. #17

    Join Date
    Aug 2007
    Posts
    26
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    15
    Sorry to dredge up old threads but I just got round to attempting to fix this (never really bothered me as always accessed users from unc shares) any way, I took the above guys test script, modded to work with xcacls.vbs and it works a treat, many thanks Nixphoe.

    due to our legacy shares (created few year back by ranger, our issue was domain admin access to desktop.ini, not administrators)

    script below if anyone wants a gander, modded to work straight from a batch file, and xcalcs.vbs from c drive

    Code:
    'dir /b "\\servername\students\"') DO cscript c:\XCACLS.vbs  ""\\servername\students\%%a\desktop.ini /D "Domain Admins:R""

  3. #18

    Join Date
    Feb 2011
    Posts
    91
    Thank Post
    6
    Thanked 24 Times in 15 Posts
    Rep Power
    11
    Sorry to dredge up this thread again, but i was also wanting to do this and keep syncronization. As i read through the thread i was eagerly awaiting the batch file script that could be scheduled to delete the desktop.ini file. But alas i have got to the end and there was no script so i sorted it. Batch file script to delete desktop.ini file.
    Thought it would be nice to share with you all. If the link is helpful please thank me
    Last edited by Chunks_; 2nd March 2011 at 12:56 PM.

  4. Thanks to Chunks_ from:

    bart21 (4th May 2011)

  5. #19
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    54
    Quote Originally Posted by rpwillis View Post
    I've written a PowerShell script which denies read access to the desktop.ini file to a specified group. Anyone in this group will then not have the documents renamed.

    Richard Willis – SharePoint Learning Kit Coordinator, SalamanderSoft Owner » How To Stop Home Folders Being Renamed Documents in the Network Share
    Fantastic. works very well however if you look at the comments on this page you will see this

    Instead of using a script you could also just add an extra column to the view of windows explorer called “Filename”
    “View”, “Choose Details…”, activate “Filename” and press “OK”
    which works fine. Saves a lot of time with scripting to delete files that get recreated every time the student logs in.

  6. #20

    Join Date
    Apr 2011
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by bewlay51 View Post
    Sorry, not been around for a while.
    I did fix the problem by disabling file synchronisation on the home folders. I did it on the caching tab of the share, in my case "home$" Simple FIX. The following maybe of some help, but stops all synchronisation....

    File Synchronisation – Stopping
    You may wish to prevent file and folder synchronisation taking place when a user logs off. If so, you will need to edit the two group polices as described below.

    a) Run group policy editor and navigate to “Default Domain Policy” right click and choose edit.
    b) Choose Computer Configuration >Administrative Templates > Networking > Offline files.

    Make the following changes:

    Allow or disallow use of offline files features Disable
    Synchronize all offline files when logging on Disable
    Synchronize all offline files when logging off Disable
    Synchronize all offline files before suspend Disable

    Remove “Make Available Offline” Enabled
    Prevent the use of offline file folders Enabled

    Prohibit “Make available Offline” for those files and folders Disable


    c) Navigate to “Default Domain Policy” right click and choose edit.
    d) Choose Computer Configuration >Administrative Templates > Networking > Offline files.

    Allow or disallow use of offline files features Disable

    NEXT
    e) Right click on the “home” share the select > Sharing > Caching >
    f) Enable the last option “Files and programs from the share will not be available offline”. If wished, this option can be enabled for all shared folders.

    Re-boot the server


    I have applied all the settings listed here, do i have to go back and delete out the desktop.ini settings to get the folders users folder that were showing up as document before I applied these settings ?

  7. #21

    Join Date
    Jan 2010
    Location
    Stockport
    Posts
    77
    Thank Post
    39
    Thanked 4 Times in 2 Posts
    Rep Power
    10
    Quote Originally Posted by sstretchh View Post
    I have applied all the settings listed here, do i have to go back and delete out the desktop.ini settings to get the folders users folder that were showing up as document before I applied these settings ?

    I found that once the users folder had been renamed to "My Documents" or "Documents" you had to manually rename it back to the user name. I don't think it will do any harm to delete the desktop.ini file, but I didn't do that.

    John

  8. #22

    Join Date
    Feb 2007
    Posts
    194
    Thank Post
    6
    Thanked 8 Times in 8 Posts
    Rep Power
    17
    Has anyone come up with a definate solution to this yet?

    I have tried all of the group policy suggestions with no luck. I want to avoide having to setup scheduled tasks for scripts etc.

    Thanks

  9. #23
    AlexB's Avatar
    Join Date
    Jul 2006
    Location
    Warwickshire
    Posts
    365
    Thank Post
    36
    Thanked 36 Times in 32 Posts
    Rep Power
    23
    @Liam

    We use FSRM to block the creation of desktop.ini on the user shares. I think it is available in server 2003 r2 and up, but I know it is in 2008.

    Obviously this only fixes new creation so once in place you'll have to remove the existing files.

  10. Thanks to AlexB from:

    Ephelyon (29th April 2014)

  11. #24
    AlexB's Avatar
    Join Date
    Jul 2006
    Location
    Warwickshire
    Posts
    365
    Thank Post
    36
    Thanked 36 Times in 32 Posts
    Rep Power
    23
    We also use FSRM for quota management and I have to say I've been very impressed for something Microsoft provide for 'free'!

    I love the way if you have a quota on a user's folder then drive display in my computer shows a bar of how much of the quota is in use.

  12. Thanks to AlexB from:

    Liam (4th May 2011)

  13. #25

    Join Date
    Feb 2007
    Posts
    194
    Thank Post
    6
    Thanked 8 Times in 8 Posts
    Rep Power
    17
    Thanks ALEXB

    I Must admit i didnt think of using a file screen.

    thanks

    All is well.

  14. #26

    Join Date
    May 2011
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    FSRM is the way to go

    I signed up just to thank AlexB for the FSRM suggestion, I have 1200 users and was battling this desktop.ini problem by running scrips that created dummy desktop.ini files in folders all over the network, then other scripts that blocked "read" permission to them for "everyone." This was working until offline file synchronization (6 months later) started throwing synch errors for everyone trying to synch their (now access denied) desktop.ini files. I searched everywhere 6 months ago and this is the only place that a file screen was suggested, it is definitely the way to go, simpler, easier, will work for future user/folder creation, and allows for synching to work without error. I'm still surprised that we have to find work arounds for this and there's no official solution.

    Thanks again, -KH

  15. #27
    AlexB's Avatar
    Join Date
    Jul 2006
    Location
    Warwickshire
    Posts
    365
    Thank Post
    36
    Thanked 36 Times in 32 Posts
    Rep Power
    23
    Quote Originally Posted by kholler View Post
    I signed up just to thank AlexB for the FSRM suggestion, I have 1200 users and was battling this desktop.ini problem by running scrips that created dummy desktop.ini files in folders all over the network, then other scripts that blocked "read" permission to them for "everyone." This was working until offline file synchronization (6 months later) started throwing synch errors for everyone trying to synch their (now access denied) desktop.ini files. I searched everywhere 6 months ago and this is the only place that a file screen was suggested, it is definitely the way to go, simpler, easier, will work for future user/folder creation, and allows for synching to work without error. I'm still surprised that we have to find work arounds for this and there's no official solution.

    Thanks again, -KH
    Hi kholler

    Glad you found a solution. I'd recommend bookmarking Edugeek, there are lots of people here with vast knowledge between them, I rarely find they can't help me

  16. #28

    Join Date
    Feb 2009
    Location
    Suffolk, UK
    Posts
    121
    Thank Post
    22
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hi, i've just put in place a file screen using FSRM, brilliant idea but now will redirected docs work for XP?

    Seems there's a fail with copying desktop.ini so they wont.

    Thought that was the perfect solution - are you guys using both xp and win 7 clients?

    thanks

  17. #29

    Join Date
    Jan 2010
    Location
    Stockport
    Posts
    77
    Thank Post
    39
    Thanked 4 Times in 2 Posts
    Rep Power
    10
    I don't use FSRM, I still use the solution I described earlier in this post and have used it on three server now without any issues. These have a mix of Win7 and XP pro.

    Regards,

    John

  18. #30
    AlexB's Avatar
    Join Date
    Jul 2006
    Location
    Warwickshire
    Posts
    365
    Thank Post
    36
    Thanked 36 Times in 32 Posts
    Rep Power
    23
    We are only Windows 7 here, sry

SHARE:
+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Srv08 - terminal server - home folders change to documents
    By lafleur1977 in forum Windows Server 2008
    Replies: 8
    Last Post: 18th October 2009, 09:22 PM
  2. Replies: 0
    Last Post: 29th August 2009, 12:39 PM
  3. Problem with user My Documents folders
    By misterchris in forum Windows
    Replies: 2
    Last Post: 24th May 2009, 02:53 PM
  4. Vista Renames Server 2003 home folders
    By MACLURE-E in forum Windows Vista
    Replies: 14
    Last Post: 27th January 2009, 08:31 PM
  5. Script to Create My Documents Subject Folders
    By SwedishChef in forum Scripts
    Replies: 15
    Last Post: 5th July 2006, 08:14 AM

Thread Information

Users Browsing this Thread

There are currently 4 users browsing this thread. (0 members and 4 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •