Solved

icacls command

Posted on 2013-01-22
2
777 Views
Last Modified: 2013-01-23
I am using two icacls command.  If i do a restore, it doesnt stop inheritance on certain folders that the original  source had.  Here are the two commands.  What other parameters do i need to correct this?

iCACLS D:\data /save c:\logfile.txt /t /c


iCACLS D:\ /restore c:\logfile.txt
0
Comment
Question by:aplona
2 Comments
 
LVL 39

Expert Comment

by:footech
ID: 38807715
if you want to remove all ACEs that are inherited, use the /inheritance:r switch.
0
 
LVL 40

Accepted Solution

by:
Subsun earned 225 total points
ID: 38807767
iCACLS should preserve the inheritance.. Are you getting any error while saving or restoring the ACL's?
Ref : http://social.technet.microsoft.com/wiki/contents/articles/408.how-to-back-up-and-restore-ntfs-and-share-permissions.aspx

Also verify the permission on the folder and sub folders..

Excerpt from ref : http://ss64.com/nt/icacls.html
Using iCACLS

    To edit a file you must already have the "Change" ACL (or be the file's owner)
    To use the iCACLS command to change the permissions of a file requires "FULL Control" (or be the file's owner)
    File "Ownership" will always override all ACL's - you always have Full Control over files that you create.

Open in new window

0

Featured Post

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

707 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

12 Experts available now in Live!

Get 1:1 Help Now