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 ' ...
-
5th August 2010, 04:31 PM #1 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.
-
-
5th August 2010, 04:41 PM #2 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
-
-
5th August 2010, 05:18 PM #3 Just unselect gran texclusive rights in your gpo for the redirection?
Ben
-
-
5th August 2010, 08:06 PM #4 
Originally Posted by
plexer
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
-
-
5th August 2010, 10:14 PM #5 
Originally Posted by
rh91uk
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:
Similar Threads
-
By CHR1S in forum Windows
Replies: 26
Last Post: 15th December 2011, 05:05 PM
-
By azrael78 in forum Windows
Replies: 12
Last Post: 14th June 2011, 11:05 AM
-
By tscnmuk in forum Windows
Replies: 6
Last Post: 13th February 2008, 10:45 PM
-
By faza in forum Networks
Replies: 5
Last Post: 9th January 2008, 09:14 AM
-
By Andie in forum Windows
Replies: 4
Last Post: 19th October 2007, 12:00 PM
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
-
Forum Rules