# Assign group permissions on folders using Powershell via CSV

**URL:** <https://forums.powershell.org/t/assign-group-permissions-on-folders-using-powershell-via-csv/12281>\
**Category:** PowerShell Help\
**Created:** [March 28, 2019, 5:55am UTC](https://forums.powershell.org/t/assign-group-permissions-on-folders-using-powershell-via-csv/12281 "2019-03-28T05:55:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![phil9431](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@phil9431](https://forums.powershell.org/u/phil9431)\
**Post date:** [March 28, 2019, 5:55am UTC](https://forums.powershell.org/t/assign-group-permissions-on-folders-using-powershell-via-csv/12281/1 "2019-03-28T05:55:58Z")

</div>

Hello!

we are working on a new Permission Concept.  
We created different Security Groups,depending on the Department.

For example:

Finance\_List, Finance\_Read, Finance\_ReadWrite

Controlling\_List, Controlling\_Read, Controlling\_ReadWrite

Planning\_List, Planning\_Read, Planning\_ReadWrite

Now i am searching for a script to automate the process for setting GroupPermissions on specific Folders.

Example:  
**Folder Finance** :

_Disable Inheritance_ and then set new permissions and replace them to all files and subfolders:  
_Group Finance\_List_ (List Folder), _Group Finance\_Read_ (Read), Group _Finance\_ReadWrite_ (Modify)

CSV Example (Folderpath and the 3 GroupPermissions per Folder):

\cifs\Finance;Finance\_List;Finance\_Read;Finance\_ReadWrite

I have 300 securitygroups and 100 folders.

Any help would be much appreciated.

Thank You!

---

<div class="post-metadata">

**Author:** ![pwshliquori](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/pwshliquori/32/222_2.png) [@pwshliquori](https://forums.powershell.org/u/pwshliquori)\
**Post date:** [March 28, 2019, 6:11am UTC](https://forums.powershell.org/t/assign-group-permissions-on-folders-using-powershell-via-csv/12281/2 "2019-03-28T06:11:01Z")

</div>

Hi Phil9431,

You can use the `Import-Csv` cmdlet to import you csv file as an object. Then, I would suggest taking a look at the NTFSSecurity module that is on the PSGallery. The module contains useful functions that can automate what you are looking to do.

`Find-Module NTFSSecurity`  
`Install-Module NTFSSecurity`

That would be a good place to start to create your script.

pwshliquori

---

<div class="post-metadata">

**Author:** ![phil9431](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@phil9431](https://forums.powershell.org/u/phil9431)\
**Post date:** [April 2, 2019, 3:32am UTC](https://forums.powershell.org/t/assign-group-permissions-on-folders-using-powershell-via-csv/12281/3 "2019-04-02T03:32:30Z")

</div>

Hey!

Thanks for your Response!

I will try and let you know if it worked!

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:33pm UTC](https://forums.powershell.org/t/assign-group-permissions-on-folders-using-powershell-via-csv/12281/4 "2024-05-16T20:33:03Z")

</div>


