Scripting Question

iCacls command not working.

05/23/2016 3855 views
Hi All,

I am facing issue with iCacls command. I used below command:

icacls C:\abc /grant :r Users:(R,W)

It executes successfully but folder 'abc' doesn't get permission apply. 

Can anyone help please and let me know what wrong I am doing here ?

Regards, D
Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author


Try this:

    icacls c:\ABC /inheritance:r /grant:r <DOMAIN>\<USER>:(OI)(CI)F /T


Answered 05/31/2016 by: tskrich
Senior Yellow Belt

All Answers

who (or which account) has the ownership before attempting to set the permissions. I have found that folders whose owner is TrustedInstaller fail to apply permissions. I've had to remove the ownership from TrustedInstaller, set an other account as the owner, apply my needed permissions and then reset the owner to TrsutedInstaller... perhaps you have a similar problem.

Answered 05/23/2016 by: Pressanykey
Red Belt

  • Thanks for your reply Phil.

    I manually created the folder and try executing the command with the same account (Admin) from cmd.
    Could you please tell how do we check TrustedInstaller ?
    • Hi,
      you can check ownership using the "normal" properties dialogue... Just make sure that the sharing wizard is not active.
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ