+ Post New Thread
Results 1 to 5 of 5
Windows Thread, My Documents Redirected - Access Denied - Need script Please :D in Technical; Hi Guys My documents are currently redirected back to C:\path\name\my documents i think ' grant exclusive rights to user ' ...
  1. #1

    Join Date
    Dec 2009
    Posts
    611
    Thank Post
    8
    Thanked 36 Times in 34 Posts
    Rep Power
    17

    My Documents Redirected - Access Denied - Need script Please :D

    Hi Guys

    My documents are currently redirected back to C:\path\name\my documents

    i think ' grant exclusive rights to user ' is enabled .

    i have no problem setting permissions on the user name path but the My documents part wont allow me to touch it because i am not the owner . Is there a good automated way to do this using a VBS ? as i dont want to take owner ship of them all by hand.

    tried a few different ways so far but all they have done is changed the user name folders permissions.

  2. #2
    rh91uk's Avatar
    Join Date
    Sep 2008
    Location
    UK
    Posts
    877
    Thank Post
    137
    Thanked 132 Times in 114 Posts
    Rep Power
    36
    Yes, there is!

    An example..

    Code:
    for /D %%i in (*) do (
    SetACL.exe -on "Z:\homedirs\%%i" -ot file -actn setowner -ownr "n:DOMAIN\%%i;s:n" 
    SetACL.exe -on "Z:\homedirs\%%i" -ot file -actn rstchldrn -rst "dacl"
    )
    Change "z:\homedirs" to the path to your my documents store on the server. Don't remove %%i as this is the folder name for each user (the username). Change DOMAIN\ to your domain


    Save it to a directory on your server and name it "Perms.bat" (for example)

    You need to run the script on the server, and have SetACL.exe in the same dir as the batch script.
    Download it from Download SetACL: Windows ACL management from SourceForge.net

  3. #3

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,580
    Thank Post
    724
    Thanked 1,684 Times in 1,499 Posts
    Rep Power
    432
    Just unselect gran texclusive rights in your gpo for the redirection?

    Ben

  4. #4

    Join Date
    Dec 2009
    Posts
    611
    Thank Post
    8
    Thanked 36 Times in 34 Posts
    Rep Power
    17
    Quote Originally Posted by plexer View Post
    Just unselect gran texclusive rights in your gpo for the redirection?

    Ben
    already have got 4 years worth of my documents lol !

    But will remove the policy from now on

  5. #5

    Join Date
    Dec 2009
    Posts
    611
    Thank Post
    8
    Thanked 36 Times in 34 Posts
    Rep Power
    17
    Quote Originally Posted by rh91uk View Post
    Yes, there is!

    An example..

    Code:
    for /D %%i in (*) do (
    SetACL.exe -on "Z:\homedirs\%%i" -ot file -actn setowner -ownr "n:DOMAIN\%%i;s:n" 
    SetACL.exe -on "Z:\homedirs\%%i" -ot file -actn rstchldrn -rst "dacl"
    )
    Change "z:\homedirs" to the path to your my documents store on the server. Don't remove %%i as this is the folder name for each user (the username). Change DOMAIN\ to your domain


    Save it to a directory on your server and name it "Perms.bat" (for example)

    You need to run the script on the server, and have SetACL.exe in the same dir as the batch script.
    Download it from Download SetACL: Windows ACL management from SourceForge.net
    Many thanks been looking for that !

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 26
    Last Post: 15th December 2011, 04:05 PM
  2. Redirected My Documents and RECYCLER
    By azrael78 in forum Windows
    Replies: 12
    Last Post: 14th June 2011, 10:05 AM
  3. Changing ReDirected My Documents
    By tscnmuk in forum Windows
    Replies: 6
    Last Post: 13th February 2008, 09:45 PM
  4. Redirected My Documents
    By faza in forum Wireless Networks
    Replies: 5
    Last Post: 9th January 2008, 08:14 AM
  5. Redirected My Documents confusion
    By Andie in forum Windows
    Replies: 4
    Last Post: 19th October 2007, 11:00 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 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
  •