How to Set NTFS Permissions: 3 Easy Methods You Can Use

Manage NTFS permissions PowerShell or specialized software

Reading time icon 4 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • If you want to set NTFS permissions, you can use File Explorer or PowerShell.
  • To make this process faster, many users are relying on third-party solutions.
ManageEngine ADManager Plus simplifies the Active Directory (AD) processes and workflows so your IT manager can focus on the more important things. AD, Exchange, Microsoft 365, and Microsoft Teams management and reporting are all covered!
  • Create multiple user accounts in one go
  • Modify the attributes of multiple users at once using CSV file import
  • Enable or disable users, and set account expiration dates of users in bulk
  • Change passwords of a single or multiple users

Manage all the Active Directory (AD) processes and workflows with one tool!

Setting up permissions on your PC is important, especially if you want to restrict unwanted access, and in today’s guide, we’re going to show you how to set NTFS permissions.

Not having proper permissions can lead to You don’t have permission to open this file and other similar issues, so it’s important to configure them properly.

This is somewhat simple to do, and you can do it on any PC in a matter of minutes. So, keep on reading to learn more about it.

How can I set NTFS permissions?

1. Use File Explorer

  1. Locate the directory whose permissions you want to set. Right-click it and choose Properties.
     
  2. Navigate to the Security tab. From there you can see the list of users and their permissions.
  3. To change the permissions, click the Edit button.
  4. Click on Add to add a new user or group.
  5. Enter the desired name and click on OK.
  6. Now select the desired user or a group and adjust the permissions by checking them.
  7. To view advanced options, click on Advanced.
  8. From there, you can set inheritance, permissions and choose to which folders your permissions apply.
  9. You can double-click the available users or groups to adjust their settings as you wish.

2. Use PowerShell

Viewing permissions

  1. Press Windows key + X and select Windows PowerShell (Admin).
     
  2. For the sake of convenience, we’re going to assign the path to the desired directory to a variable by using the following command: $dir = 'C:\Path\to\directory'
  3. To view the permissions, run the following command: (Get-Acl -Path $dir).Access
  4. Alternatively, you can use the following command to view permissions in a more readable format: (Get-Acl -Path $dir).Access | Format-Table -AutoSize

Setting permissions

  1. Run the following commands to create variables for permissions:
    $identity = 'domain\user'
    $rights = 'FullControl'
    $inheritance = 'ContainerInherit, ObjectInherit'
    $propagation = 'None'
    $type = 'Allow'
  2. Now combine all the variables into a single object with this command: $ACE = New-Object System.Security.AccessControl.FileSystemAccessRule($identity,$rights,$inheritance,$propagation, $type)
     
  3. Now we need to get access rights from the desired directory and store them in a variable: $Acl = Get-Acl -Path $dir
  4. Next, we add the access rule: $Acl.AddAccessRule($ACE)
  5. Lastly, set the rule with the following command: Set-Acl -Path $dir  -AclObject $Acl

Removing permissions

  1. Firstly get the permissions of the desired object and store them in the variable with this command: $Acl = Get-Acl -Path $dir
     
  2. Filter the permissions that you want to remove and store them in a variable: $Ace = $Acl.Access | Where-Object {($_.IdentityReference -eq 'domain\user') -and -not ($_.IsInherited)}
  3. Now remove the access rule: $Acl.RemoveAccessRule($Ace)
  4. Lastly, make the changes: Set-Acl -Path $dir -AclObject $Acl

This is an advanced method, and we barely got into the basics. If you want to use this method, be sure to inform yourself regarding permission and read the documentation thoroughly.

3. Use a dedicated tool

  1. Open AdManager Plus and select the directory whose permissions you want to modify. Next, choose Permission.
  2. In the Select Permission section adjust your permissions accordingly.
  3. To view permissions, click on Preview.
  4. Lastly, click on Modify to save changes.

ManageEngine AdManager Plus

Managing all permissions in your network doesn’t have to be complicated, as long as you use AdManager Plus software.
Free trial Get it now

Now you know how to set NTFS permissions on your PC. The manual method is the simplest one, but it might not be the most effective.

For more advanced users, there’s always PowerShell or other software that can help you set the permissions accordingly. Also, be sure to check our guide on best practices for NTFS permissions to keep your data secure.

What method do you use to set permissions on your network or PC? Let us know in the comments below.

More about the topics: ntfs, windows 10