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
0
votes
1 answer

File Permissions using batch file

This is my script. @echo off set USER = %1 if [%1]==[] goto error icacls \\TESTSERVER\testusers\%user% /grant:r "%USER%":(OI)(CI)F icacls d:\testusers\%user% /grant:r "%USER%":(OI)(CI)F @echo Folder Permission set successfully goto…
Antony
  • 512
  • 2
  • 18
0
votes
1 answer

icacls permissions script in powershell

Let me start off by saying I am very new to scripting! Basically what I am trying to do is to write a script that will create all of these files: For the 13-14 in the files that is the previous and current year so I need a variable that when I run…
user3585198
0
votes
1 answer

icacls fails to provide access to file but the message says it is successfully completed

I am trying to assign a windows group to a particular file. icacls "C:\Program Files (x86)\MyOrg\MyProj\Logger.exe" /grant "My System Administrators":(OI)(CI)F The result is as follows "processed file: C:\Program Files…
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230
0
votes
1 answer

Nested for loop in batch file closes after running the first variable

I'm creating a batch script to pull permissions from all directories (not individual files) from all locally fixed disks on a system. Here's what works; I am able to create a temp file that lists all locally fixed NTFS partitions. I'm able to take…
0
votes
1 answer

ICACLS add Local Group in powershell

Hi I'm doing some automated folder permissions across servers and I've created a group with the same name on remote machines and i'm trying to grant the group access to a folder but icacls seems to not like local groups, it can't add them to the…
Bob Fishel
  • 123
  • 2
  • 5
  • 15
0
votes
1 answer

Applying permissions across many folders

I need to create a script that will apply permissions on many folders, with different permissions depending on the folder name. There is a root folder share, inside of which is a folder representing each client. Inside of each client folder is a…
user2988831
  • 13
  • 1
  • 1
  • 4
0
votes
1 answer

Powershell windows file share permissions. Add new users then replace all existing users?

I've gotten comfortable using icacls to add people to file folders but now I am having trouble figuring out how to do the following: on a folder with many children, g get the existing permissions on the folder and store them Add a bunch of new…
Bob Fishel
  • 123
  • 2
  • 5
  • 15
-1
votes
1 answer

LINQ Except not returning string values correctly

I've been trying to create a small program to compare two collections of strings and to output any items that are different or missing between collection1 and collection2. As far as I have been able to determine LINQ's .Except method should provide…
Waves
  • 29
  • 6
-1
votes
1 answer

Grant Permissions for Directory using Powershell with icacls

i want to set grant Permissions to a ftp-user for a directory on Windows Server 2012R2 Core Installation. Im administrating the system over Powershell. The Command: icacls "c:\inetpub\wwwroot\mysite" /grant ftp_user1:(OI)(CI)F works well when i…
Kateere
  • 21
  • 2
  • 4
1 2 3 4 5 6
7