![]() |
|
|
|||||||
| Petri.co.il is happy to award auglan the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts |
Mark Forums Read |
| Notices |
|
|
Change Permissions on bulk homedirsthis thread has 2 replies and has been viewed 6430 times
|
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||||||||
|
||||||||||
|
Hello all,
I have Win2k3 R2 standard edition as file server. I have the next scernario: Users has folder redirection of "My Documents" and "Application Data" to this server that building themselfes under the user's homedir. Accidentally I forgot to remove the option of "Grant the user exclusive rights to My Documents" and the same thing on "Application Data", and now I can't get access to these folders in user's homedir. There are several groups of homedirs, every group of homedirs are under their Root directory. I would like to have some script that will inherit permissions FROM user's homedir TO the "My Documents" and "Application Data", or it's possible to inherit permissions to all subfolders and files, or it would be better to automate the option of " Replcae permission entries on all chikd objects with enttries shown here that apply to child objects" on all the homedirs. I guess the script should do the next: 1. Scan / Read the current permissions of each directory / folder. 2. Inherit permissions from the user's root homedir. 3. Add the name of the folder to the security permissions with full control in adition to the inherited permissions that mentioned in paragraph 2 (The name of the folder is the username, there for I need to add the folder name to the security tab of the folder). I hope my explanation was clear and there is nothing missing. Hoping someone will help me ASAP. Thanks ahead, Boris Reuven Last edited by holler1; 26th September 2007 at 17:38.. |
|
#2
|
||||||||
|
||||||||
|
i had success changing massive ntfs permission on home folders with hyena.
|
|
#3
|
||||||||||
|
||||||||||
|
Quote:
So besites taking ownerschip (not the finest option) it looks like there are two more options you can try first; 1. Use xcacls in a user logon-script, and wait for the user to re-logon. 2. Schedule a task on the server that stores these user folders to run Xcacls as the buildin\system When using Windows Scheduler, change the 'domain\Username' to 'System' and leave the password boxes empty! This way the task will run but hidden and not interactive. Or, you can use an AT.exe /Interactive command-line for the job. AT.exe hh:mm /interactive Cscript.exe xcacls.vbs /<switches and parameters> where hh:mm is the current time on the server plus 2 minutes. (btw instead of using a scheduler to run the job, you can also use PsExec -s -i <...> to run it directly) \Rems |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script to change permissions on a System32 file | biggles77 | General Scripting | 7 | 18th September 2007 18:56 |
| setting up profiles and homedirs - procedure | spoofer | Windows Server 2000 / 2003 | 2 | 2nd May 2007 15:42 |
| Script to change Diretory and File Permissions | dlucas10 | General Scripting | 1 | 17th November 2005 08:32 |
| Windows XP: Change permissions for Standard User | versli | Windows 2000 Pro, XP Pro | 1 | 4th September 2005 00:39 |