Questions tagged [icacls]
55 questions
2
votes
2 answers
icacls variable not working in powershell script
I am configuring a new fileserver running on nanoserver 2016 datacenter edition. Right now i am working on a powershell script to create user folders. But I get an error when using the icacls command to set permissions.
Enter-PSSession…

Gerald
- 23
- 1
- 4
2
votes
1 answer
Resetting Windows' File Security Permissions
I'm trying to find the correct commands to reset each of my hard drives permissions to remove all of the incorrect, outdated groups/usernames that have built up on folders over time and reset the permissions to their defaults.
I've tried running…

Ryflex
- 139
- 1
- 11
2
votes
2 answers
ICACLS in powershell script 50% working
I have an ICACLS command running within a powershell script. The script creates a new folder on a server share, creates a new security group in AD and then runs ICACLS to provision the folder. When I execute the function, sometimes it works and…

Sid
- 21
- 2
2
votes
1 answer
Locking directory structure
As the title suggests, I'm trying to lock the directory structure for a folder-hierarchy.
Multiple (W7) users access shared projects on a (QNAP) SMB NAS (ACL & Auth against AD).
When new projects are created, a directory structure is copied from a…

Jakes
- 21
- 1
2
votes
1 answer
Remove file permission using icacls
Could someone help me to remove particular security groups from a file using icacls?
The file has all security settings inherited from the folder, where the file resides. So I would like to remove all the groups from ACL list of the file, then…

carous3l
- 57
- 1
- 1
- 4
2
votes
2 answers
How to setup NTFS ACL with Acces Based Enumeration
We're in the process of migrating from Novell Netware to Windows 2K8 R2 infrastructure (AD, File server, print server... etc)
My question is about ACL. While Netware and Windows are totally different, I want to be sure my thnking is good before…

Patrick Pellegrino
- 133
- 3
- 13
2
votes
1 answer
icacls equivalents of explorer basic permissions
I am using icacls to set permissions on a large number of directories for various groups. I want to assign what icacls help refers to as "modify access". It seems to do this correctly. However when the rights are viewed with Windows Explorer…

John Fitzpatrick
- 123
- 4
1
vote
1 answer
icacls : create private directory (full control for user and no listing for others except admins)
I would like to create a folder with permissions similar to my home directory. I tried giving myself full control etc. but I managed to get locked out and had to use the takedown tool to be able to delete the directory.
I know Deny permissions take…

pyb
- 216
- 2
- 7
1
vote
0 answers
ACL of Folders on Domain-joined Host for Local Account Holders
I have a domain-joined server, Windows Server 2012 R2 Standard, with a folder tree that is common to multiple users. Some users have domain accounts and some have only local Windows accounts. All users use Remote Desktop to access the server and…

boynoid
- 11
- 4
1
vote
1 answer
Give exclusive AD access to Mapped Drive via GPO
I want to know how to provide a user with exclusive access to a folder, but not other folders. The folder root is located here:
DC1\\UserFolders\%username%
I use a GPO to map that user's folder. But the problem is that it only maps if the user…

billsecond
- 199
- 9
1
vote
3 answers
icacls variables in batch file
I'm moving users to a new domain, file server and user name format. I'm trying to write a simple DOS batch to copy the data and set the permissions. X: is mapped to the old server and E: is the local drive on the new server. The input file is just a…

SteveH
- 11
- 1
- 2
1
vote
2 answers
Windows Server 2003 redirected folder permissions cannot be altered
I have a Windows SBS 2003 SP2 DC that is severely messed up. This system has 55 users and they are all using redirected "home" folders to "e:\Users Shared Folders" I need to backup the files in each users folder, but I constantly get "Access Denied"…

Dan M.
- 143
- 6
1
vote
2 answers
Force ownership of folder structure without replacing other permissions - Windows Server 2008 R2 - takeown is erasing all other permissions
Logged on as local Administrator. Trying to put Administrator as owner of all files and folders on a drive. The drive contains an existing folder structure with securities/permissions/acls copied from another server using robocopy which is why the…

jaymitt
- 41
- 1
- 1
- 4
1
vote
1 answer
Error using iCacls
I saved an ACL using icacls using this command
icacls File.zip /save aclsFile
That worked fine, but whenever I try to restore the file I get an error message:
icacls * /restore aclsFile
Not all privileges or groups referenced are assigned to the…

RedPheonix
- 35
- 2
- 6
1
vote
0 answers
How to save ACLs of a directory tree and then restore it on another server, as SID mapping is not guaranteed?
ICACLS can save ACL of a tree with the command below, where a_dir_root is the root of this tree:
icacls a_dir_root\ /save AclFile /T /C /Q
Of course, groups are identified as SIDs. I want to restore them on another server, which has the same group…

Amessihel
- 113
- 8