Editing File/Folder Permissions in PowerShell

Welcome Forums General PowerShell Q&A Editing File/Folder Permissions in PowerShell

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
5 years, 5 months ago.

  • Author
    Posts
  • #9293

    Participant
    Points: 1
    Rank: Member

    Hi all,

    I need to check if a group has full access to a folder and if not add them, with inheritance to all sub folders. The only thing ive found is to use Get-ACL and Set-ACL but it then goes into .NET to do the real work. With Posh 3 is there a new easier way?

    Thanks for any input.

    S

  • #9297

    Participant
    Points: 2
    Rank: Member

    The acl handling out of the box in powershell is... not great. It does take a little bit of extra work to make it do what you want. If you are happy to run a module i have occasionally used NTFSsecurity which is very highly rated on technet. You can use get-effectiveaccess to see if the group has access and if not then add-access.

  • #9330

    Participant
    Points: 1
    Rank: Member

    Thanks Matt,

    looks very interesting..

    S

The topic ‘Editing File/Folder Permissions in PowerShell’ is closed to new replies.