Would you like to learn how to configure the file permissions using Powershell? In this tutorial, we are going to show you how to use Powershell to configure the NTFS permissions of a file on Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial - PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell - Configure file permissions

As an Administrator, start an elevated Powershell command-line.

Windows 10 - powershell elevated

List all the NTFS permissions available.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Add permission to a file.

Copy to Clipboard

Verify the file permissions.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

In our example, we added the read permission for user Jessica.

In our example, we kept the previously existing file permissions.

Congratulations! You are able to add file permissions using Powershell.

Tutorial Powershell - Remove file permissions

As an Administrator, start an elevated Powershell command-line.

Windows 10 - powershell elevated

Remove permissions from a file.

Copy to Clipboard

Verify the file permissions.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

In our example, we removed the read permission from user Jessica.

In our example, we kept the previously existing file permissions.

Congratulations! You are able to remove file permissions using Powershell.