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 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.

Windows - Elevated command prompt

Grant basic permissions to files using ICACLS.

Copy to Clipboard

Grant basic permissions to domain users.

Copy to Clipboard

Optionally, grant permissions to multiple users.

Copy to Clipboard

Here is the list of basic permissions available.

Copy to Clipboard

List the permissions of a file using ICACLS.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Deny basic permissions to files.

Copy to Clipboard

Remove all granted permissions from a file using ICACLS.

Copy to Clipboard

Remove all denied permissions from a file using ICACLS.

Copy to Clipboard

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.

Windows - Elevated command prompt

Grant advanced permissions to files using ICACLS.

Copy to Clipboard

Here is the list of advanced permissions available.

Copy to Clipboard

List the permissions of a file using ICACLS.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Deny advanced permissions to files.

Copy to Clipboard

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.

Windows - Elevated command prompt

Remove all inherited permissions.

Copy to Clipboard

Enable inherited permissions.

Copy to Clipboard

Disable inheritance and copy the permissions.

Copy to Clipboard

Configure inheritance rights of a directory.

Copy to Clipboard

Here is the list of Inheritance rights.

Copy to Clipboard

List the permissions of a directory using ICACLS.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Congratulations! You are able to configure inheritance rights using the command line.