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.
List all the NTFS permissions available.
Here is the command output.
Add permission to a file.
Verify the file permissions.
Here is the command output.
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.
Remove permissions from a file.
Verify the file permissions.
Here is the command output.
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.