Using SetACL to change inheritance

I have several users home directories with an ACE set to full access for the user, but "this folder only"  I'm trying to use setacl.exe to change it to "this folder sub folders and files" for that user.  I have come up with this script but it seems I'm missing something, as it doesn't work.  

SetACL.exe -on "%homeshare%" -ot file -actn ace -ace "n:DTHS\%username%;p:full;so,sc" -op "dacl:np;sacl:np" -actn rstchldrn rst "dacl,sacl"  -rec cont_obj -ignorerr

Any ideas ???
sean-keysAsked:
Who is Participating?
 
JSoupConnect With a Mentor Commented:
example
APPLIES TO
" Microsoft Windows 2000 Server
" Microsoft Windows 2000 Advanced Server
" Microsoft Windows 2000 Professional Edition
" Microsoft Windows 2000 Datacenter Server
" Microsoft Windows NT Workstation 3.51
" Microsoft Windows NT Workstation 4.0 Developer Edition
" Microsoft Windows NT Server 3.51
" Microsoft Windows NT Server 4.0 Standard Edition
 
>>>>>>    How To Automate Folder Permissions
http://support.microsoft.com/kb/180464

it not one solution for all.
0
 
JSoupCommented:
is this in any way dealing with a server??  SetACL.exe is a free program for setting permissions on Windows NT/2000/XP systems.
use explorer
0
 
sean-keysAuthor Commented:
I don't want to use explorer because I would have to do the same thing for some 500 directories.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
JSoupCommented:
is this in any way dealing with a server??  
0
 
sean-keysAuthor Commented:
yes it is
0
 
JSoupCommented:
Some technical information is  needed before giving the right advice.  
SetACL.exe is a free program for setting permissions on Windows NT/2000/XP systems.
Which w2k3 or w2K server is it?
Is this using Windows Server 2003 Terminal Services?
Are Windows NT 4 computers in use?


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.