DSC Resource to set folder premissions ala icacls

This topic contains 2 replies, has 2 voices, and was last updated by  Don Jones 4 years ago.

  • Author
  • #15694

    Jeff Pflum

    Is anyone aware of an existing DSC resource (experimental or community) that can be used to set permissions on a folder?

    For example, something equivalent to running the following, but as a DSC resource:

    "icacls c:\inetpub\wwwroot\APP_DATA /T /C /grant IIS_IUSRS:(F)"


  • #15695

    Jeff Pflum

    Sorry about the spelling error – Permissions. Is there a way to correct topic names?

  • #15697

    Don Jones

    Not for regular users – but be careful about replying to your own post, because it takes you off the "topics with no replies" a lot of us use to find topics needing help.

    And no, I'm not aware of an ACL resource. You're welcome to donate one ;). Get-ACL and Set-ACL can do that, but they're pretty involved.

You must be logged in to reply to this topic.