How to modify the permissions of files and folders in batches in Windows 7

  
Many people will find this problem when using Windows 7 Professional/Enterprise or Ultimate: If you want to set permissions on multiple folders or files, after selecting these folders and files, right click and select “ Attributes & rdquo;, in the "Properties" dialog box, there are only two tabs, "General" and "Custom", which are not commonly found in previous versions of Windows. Therefore, it is not possible to modify the permissions of these folders or files in batches.

Operation steps:
After selecting multiple files or folders, there is no "Security" tab in the properties dialog box.
In order to meet the user's need to modify the permissions of folders or files in batches, in this article of the Yibaodian knowledge base article, we will provide you with two alternative methods for implementing batch permission modification.
Scenario 1:
Graphical approach. Since the permissions of folders or files in the Windows system are inherited by default, the permission settings applied to the parent folder are also inherited by the subfolders and the files in them, so to implement batch permission modification, the user can Folders and files that need to be modified are placed in a newly created folder, then right-click on the newly created folder and select “Properties>, modify the permissions of the folder in the security dialog box, modify The permissions will be applied by all subfolders and the files they contain. After the modification is completed, you can move the folders and files to the original storage path.

Scenario 2:
The way the command line is. You can use the administrator user to log in to the system and open the Windows command line program CMD. Use the icacls command in the command line program to modify the permissions of the folder or file, and the command also supports the recovery of folder or file permission settings. Provides an enhanced file permissions setup experience for users than the earlier icacls command.
Example:
icacls c:windows* /save AclFile /T Saves the ACLs of all files in c:windows and its subdirectories 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) will grant 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.

Copyright © Windows knowledge All Rights Reserved