How to bulk Modify permissions for files and folders in Windows7

Source: Internet
Author: User
Tags file permissions

Many people find such a problem when they use the Windows 7 Professional Edition/Enterprise or Flagship edition: If you want to set permissions on more than one folder or file, after selecting these folders and files, click the right mouse button, select Properties, and only the general and custom two tabs in the Properties dialog box , there are no security tabs that are common in previous versions of Windows. Therefore, you cannot modify the permissions of these folders or files in bulk.

Operation Steps:

After you select multiple files or folders, there is no Security tab in the Properties dialog box, which is by design.

In order to meet the user requirements for the bulk modification of folder or file permissions, in this article will provide you with two alternative methods for the implementation of the volume of permission changes.

  Programme I:
graphical Way. Because by default, permissions on a folder or file in a Windows system are inherited, and the permissions that are applied to the parent folder are also inherited by the Quilt folder and the files in it, so to implement batch permission modifications, users can place folders and files that need to be modified in a new folder. Then click the right mouse button on the newly created folder, select "Properties", modify the folder in the Security dialog box, and the modified permissions will be applied to all subfolders and the files they contain. After the modification is complete, you can move the folders and files to the original storage path to save.

  Programme II:
the way the command line is. You can use an administrator user to log on to the system and open Windows command line program CMD, use the ICACLS command in a command-line program to modify permissions on a folder or file, and the command also supports the restoration of folder or file permission settings, compared to earlier ICACLS commands, Provides the user with enhanced file permission settings experience.

Example:

Icacls c:windows*/save aclfile/t to save ACLs for all files in C:windows and its subdirectories to AclFile.

icacls c:windows/restore AclFile will restore ACLs for all files in AclFile that exist in C:windows and its subdirectories.

icacls file/grant Administrator: (D,WDAC) will grant users administrative rights to delete files and write to the 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 the DAC to the file.

For more usage and information about the ICACLS command, use ICACLS/? At the command line. View.

|

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.