Don't know how to use iCacls command in Windows 7...

Posted on 2014-04-20
Last Modified: 2014-05-19
Hi, I'm trying to install my app (which I developed on an old XP 32 bit system) to systems that are Windows 7, Windows Vista, Win 8 systems, etc, which are also 64 bit... and I'm having a hell of a time. After installation, some of the files my installation program installs can't be written to by my app and I was told I needed to uses the "iCacls" command in my installation software to set permissions. I looked at the syntax for this command and it makes my head hurt. Can someone tell me simply how to make all files in a folder, full access (read and write), for everyone?

Question by:shawn857
  • 3
LVL 18

Accepted Solution

Raheman M. Abdul earned 500 total points
ID: 40011758
Remember to run your application "Run As Administrator" (right click your application and select run as administrator to install the application on the systems)

Else Try this:

icacls "c:\yourProgramPath" /grant "domain admins":(OI)(CI)F


icacls "c:\yourProgramPath" /grant "everyone":(OI)(CI)F


icacls "c:\yourProgramPath" /grant "Users":(OI)(CI)F


F   = Full Control
CI  = Container Inherit - This flag indicates that subordinate containers will inherit this ACE.
OI  = Object Inherit - This flag indicates that subordinate files will inherit the ACE.

Author Comment

ID: 40011937
OK thank you Raheman, I will try this and let you know how I make out...


Author Comment

ID: 40016733
Thank you Raheman, this appeared to work perfectly! You see, I issue this command within my installation software, at the very end of the installation. My only question is - if my app is being installed on an old Windows XP computer, does Win XP have this icacls command, or will my installation process throw an error to the user? ("icacls not found"... or something).

LVL 59

Expert Comment

ID: 40076795
I've requested that this question be deleted for the following reason:

The question has either no comments or not enough useful information to be called an "answer".

Author Closing Comment

ID: 40076796
Thank you Raheman.


Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hope this helps those who have been battling the SanDisk / U3 problem for a while. For anyone that is running Windows 7 64bit and is receiving and searching the internet for the “Windows Error: Windows has allocated a drive letter to the U3 dri…
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now