Editing File/Folder Permissions in PowerShell

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of staggerlee011 staggerlee011 3 years, 10 months ago.

  • Author
    Posts
  • #9293
    Profile photo of staggerlee011
    staggerlee011
    Participant

    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
    Profile photo of Matt Tilford
    Matt Tilford
    Participant

    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
    Profile photo of staggerlee011
    staggerlee011
    Participant

    Thanks Matt,

    looks very interesting..

    S

You must be logged in to reply to this topic.