Windows7 batch modify file permissions method diagram tutorial

  
 

If the user pre-installed Windows
7
Enterprise Edition or Ultimate Operating System

, when facing multiple folders Or the file setting permission operation will find the problem. After the folder is selected, there are only two options, regular and custom, in the right mouse button property dialog box, so the permissions cannot be modified for these folders.

Operation Steps

Use the “icacls” command to modify the file permissions in batches

Log in to the system with the administrator user, and open the run input CMD, use in the command line program &ldquo The ;icacls” command modifies the permissions of a folder or file, and the command also supports recovery of folder or file permission settings, providing users with enhanced file permission settings compared to the earlier “icacls” command.




Example:

icacls c:\\windows\\* /save AclFile /T will c:\\windows and The ACLs of all files in its subdirectories are saved to AclFile.

icacls c:\\windows\\ /restore AclFile will restore the ACLs of all files in AclFile that exist in c:\\windows and its subdirectories.

icacls file /grant Administrator:(D,WDAC) Grants the user administrator rights to delete files and write to the DAC.

icacls file /grant *S-1-1-0: (D, WDAC) Grants the user defined by sid S-1-1-0 to delete and write to the DAC.

For more usage and information about the “icacls” command, use icacls /? on the command line.

The icals command is used to view, set, save, and reply to permissions on folders or files.

ICACLS name /save aclfile [/T] [/C] [/L] [/Q]

Store all matching ACLs into aclfile for future use in /restore.

ICACLS directory [/substitute SidOld SidNew [...]] /restore aclfile

[/C] [/L] [/Q]

The ACL will be stored Applies to files in the directory.

ICACLS name /setowner user [/T] [/C] [/L] [/Q]

Change the owner of all matching names.

ICACLS name /findsid Sid [/T] [/C] [/L] [/Q]

Find all matching names that contain ACLs that explicitly mention SIDs.

ICACLS name /verify [/T] [/C] [/L] [/Q]

Find all files whose ACL is not standard or whose length is inconsistent with the ACE count.

ICACLS name /reset [/T] [/C] [/L] [/Q]

Use the default inherited ACL for all matching files. Replace ACL

ICACLS Name [/grant[:r] Sid:perm[...]]

[/deny Sid:perm [...]]

[/remove[:g

Copyright © Windows knowledge All Rights Reserved