I have a problem with the xcacl script. It seems to give the designated user Full Control of their main Home directory, subfolders and files with in that directory. But then when I run the script to give them Ownership, it removes the permissions of full control, while giving ownership.
Here's what I'm doing.
So I have a directory called sally, and in that directory is a desktop directory, directory 1, directory 2 and so on. Also in the Directory called sally is users .doc and excel files.
The name Sally reflect the users AD log in name.
I cd to the s:/dfsshared/home/acme directory, in that directory is my users Home directory including sally's.
once in the directory, I run the command cscript.exe /h:cscript
I then run the bat command from with in that directory.
this is the bat file script.
FOR /D %%f IN (*) DO "C:\WINDOWS\scripts\XCACLS.vbs" %%f /t /g domainname\%%f:f /t /e
As I said it looks like it gives them full control to the main directory and sub directories.
I then run this script...
FOR /D %%f IN (*) DO "C:\WINDOWS\scripts\subinacl.exe" /subdirectories "%%f" /setowner="domainname\%%f"
Once I run the ownership command, it wipes out the inheriteted permissions on the sub directories and files, but gives ownership.
Any tips or idea how to do both. give them Full Control, and then Ownership of all files and directories? the users need ownership in order for the desktop redirect to work