Questions tagged [icacls]

Windows command that displays or modifies discretionary access control lists (DACLs) on specified files, and applies stored DACLs to files in specified directories. Inheritor of the older CACLS command.

Useful links:

  1. iCACLS on technet.
  2. iCACLS on SS64 help pages.
99 questions
21
votes
1 answer

Using icacls to set permissions of a folder to inherit recursively

I want to set a specific folder with specific rights to inherit all rights of it's parent folder. I know I should use icacls. My folders look like this: - mp - build (set this one to inherit from mp)
Asken
  • 7,679
  • 10
  • 45
  • 77
14
votes
1 answer

How to use batch file to give a folder permission to the Everyone group

Im trying to add the group Everyone and give it modify permissions on a folder. Im using a batch file to try this. so for I have icacls "C:\Program Files (x86)\Program File" /grant:r Everyone:M But when I go and look at the permissions on the folder…
rangerr
  • 261
  • 2
  • 5
  • 13
8
votes
2 answers

Using ICACLS to set file permission to 'read-only'

I'm having a heck of a time transferring from the simple, intuitive chmod 400 to trying to do the same thing in Windows Command Prompt using ICACLS. Compared to the sleek, octal representation of UNIX/LINUX's chmod, ICACLS seems a complex nightmare.…
Kyle Vassella
  • 2,296
  • 10
  • 32
  • 62
8
votes
2 answers

Execute icacls in PowerShell to grant access to a file share for domain computer

I wonder how to uses icacls within a PowerShell script for setting up permissions on a fileshare for a computeraccount for e.g. Domain\myServer$. This is what I'm trying: $ComputerAccount = "domain\myServer$" $Folder =…
3
votes
2 answers

icacls Deny Everyone Directory Delete Permission

I am trying to deny all users from being able to delete a folder (as well as its contents, if possible). What I currently have is not working. icacls pics /deny Everyone:(OI)(CI)(DE) Using the above line neither protects the folder nor its content…
TechDude
  • 111
  • 1
  • 3
  • 12
2
votes
1 answer

icacls replace permissions drive root

I'm operating on Windows 2012 R2, trying to use a batch file to manage my NTFS perms using icacls. The batch file is almost complete, then I'll be handing it off to someone with far less experience to manage, so I'm trying to make it as easy for him…
Derek
  • 29
  • 1
  • 3
2
votes
0 answers

Icacls permissions not applying as I expect

I am running a batch file as part of a larger application. If certain conditions are met, a folder is created and permissions applied to the folder using icacls. I have permission inheritance disabled on the parent folder, and I want to add to the…
John
  • 755
  • 1
  • 18
  • 46
2
votes
2 answers

CMD with icacls issue for windows 10 upgrade - invalid parameters

I'm trying to upgrade my laptop to windows 10 but it says my system reserved partition is low on available size so i'm following microsoft solution on the internet and somehow got stuck with these commands. for your information, i'm stuck on the…
Scorpiorian83
  • 469
  • 1
  • 4
  • 17
2
votes
0 answers

Using icacls command in Win7 cmd line to set inheritance to (I)

I am trying to set the ACL/inheritance for a folder (or file) as follows: icacls /inheritance:r /grant:r "builtin\administrators":(I)(F) However, this produces an error (icacls doesn't recognize the "(I)" as being valid?). According to icacls /?,…
2
votes
1 answer

Specifying permisions with icacls

I want to allocate read only permission to "Everyone" on an empty folder so that the users are not allowed to change the folder name. However I want "Everyone" to be able to create/modify/delete files in the folder. say the folder is called…
Angus Walker
  • 378
  • 3
  • 13
2
votes
1 answer

How to use special character in Inno Setup?

How can I use the special character: á in Inno Setup? For example: Without special character at Parameters: Filename: "{sys}\icacls.exe"; Parameters: """{app}\IRs\IRS.FDB"" /grant Todos:F /inheritance:d"; Flags: runhidden shellexec But, when there…
pedro.olimpio
  • 1,478
  • 2
  • 22
  • 43
2
votes
1 answer

icacls adding additional explicit entry

I'm running this command on a folder structure in order for all files and folders to recursively inherit the SYSTEM account with full control (and correct inheritance): icacls V:\path\*.* /T /C /Q /grant SYSTEM:(OI)(CI)F This appears to work as…
BSUK
  • 692
  • 1
  • 12
  • 28
1
vote
0 answers

Provide Write and Modify permission to Authenticated User

I am having this below code where I am trying to remove and then provide Modify and write access to the Authenticated User for D:\ drive $systemDrives = Get-PSDrive -PSProvider FileSystem | where {($_.Name -eq "D")} foreach($driveLetter in…
1
vote
2 answers

Can't run icacls to a directory with spaces

I'm trying to run a simple icacls to a directory on my computer and I'm facing this error: PS C:\Users\gguer\Documents> icacls.exe '.\My Digital Editions\' .\My Digital Editions": The filename, directory name, or volume label syntax is…
1
vote
0 answers

Robocopy script that takes ownership and gives it back

I am currently migrating from a Unix FS to a Windows FS and i need to copy user folders. I have created a robocopy script that is very simple with a few kinks here and there. My script: @echo off set /p username=Enter Username to start copying…
cbraafhart
  • 11
  • 1
1
2 3 4 5 6 7