How to assign privileges to a directory through command line?
Hi everyone, I have attached a picture. I have a rather complex privileges rules to directories and I have 100s of them with 100s of different users. Is there an easy one line type of command that would allow me assign all privileges I want to a directory rather than clicking 100 x 5 clicks = 500 clicks :-) Check this picture to see what I mean: Thanks
January 14th, 2012 3:22pm

Icacls.exe can be used to assign permission. It has various options you can get more information about it @ http://technet.microsoft.com/en-us/library/cc753525(WS.10).aspx#BKMK_examples As an example following command will set Extended Read and Extended Write to D:\TestFolder Directory. icacls d:\testFolder /grant administrator:(REA,WEA) -CrDev Blogs: http://blogs.msdn.com/b/satyem
Free Windows Admin Tool Kit Click here and download it now
January 14th, 2012 5:19pm

Icacls.exe can be used to assign permission. It has various options you can get more information about it @ http://technet.microsoft.com/en-us/library/cc753525(WS.10).aspx#BKMK_examples As an example following command will set Extended Read and Extended Write to D:\TestFolder Directory. icacls d:\testFolder /grant administrator:(REA,WEA) -CrDev Blogs: http://blogs.msdn.com/b/satyem
January 15th, 2012 1:10am

I would suggest for simplicity that you run "icacls D:\testFolder" that will list the current permissions so you just can copy instead of trying to get all the parameters right.Oscar Virot
Free Windows Admin Tool Kit Click here and download it now
January 15th, 2012 9:24am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics