Would you like to learn how to configure the file permissions using the command line? This tutorial will show you how to set file permissions using the command line on Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11
Equipment list
Here you can find the list of equipment used to create this tutorial.
This link will also show the software list used to create this tutorial.
Windows Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Windows.
Tutorial Windows – Configure file permissions using the command line
As an Administrator, start an elevated command line.
Grant basic permissions to files using ICACLS.
Grant basic permissions to domain users.
Optionally, grant permissions to multiple users.
Here is the list of basic permissions available.
List the permissions of a file using ICACLS.
Here is the command output.
Deny basic permissions to files.
Remove all granted permissions from a file using ICACLS.
Remove all denied permissions from a file using ICACLS.
Congratulations! You are able to configure file permissions using the command line.
ICACLS – Configure advanced file permissions using the command line
As an Administrator, start an elevated command line.
Grant advanced permissions to files using ICACLS.
Here is the list of advanced permissions available.
List the permissions of a file using ICACLS.
Here is the command output.
Deny advanced permissions to files.
Congratulations! You are able to configure advanced file permissions using the command line.
ICACLS – Configure file inheritance rights
As an Administrator, start an elevated command line.
Remove all inherited permissions.
Enable inherited permissions.
Disable inheritance and copy the permissions.
Configure inheritance rights of a directory.
Here is the list of Inheritance rights.
List the permissions of a directory using ICACLS.
Here is the command output.
Congratulations! You are able to configure inheritance rights using the command line.