Deep win7 system batch modify file and folder permissions method

  
                                    

Method 1,

1. By means of the command, first log in to the system with the administrator user, and then open a command prompt window, enter the icacls command in the command line program to do permissions on the folder or file. Modifications, and the command also supports recovery of folder or file permission settings;

Example:

icacls c:windows* /save AclFile /T will be c:windows and its subdirectories The ACL of all files is saved to AclFile;

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

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

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

More usage and information about the icacls command can be viewed using icacls /? on the command line.

Method 2,

1. Because the permissions of folders or files in the Windows system are inherited by default, the permission settings applied to the parent folder will also be subfolders as well. The files are inherited, so to implement batch permission modification, the user can put the folders and files that need to modify the permissions in a new folder, then right click on the newly created folder, and then select “ ”;

2, then open the interface, switch to the "Security" tab, and then you can modify the permissions of the folder, the modified limit will be all subfolders And the file applications it contains;

3, after the modification is completed, you can move the folders and files to the original storage path to save.

Copyright © Windows knowledge All Rights Reserved