DSC Resource to set folder premissions ala icacls

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 2 years, 6 months ago.

  • Author
    Posts
  • #15694
    Profile photo of Jeff Pflum
    Jeff Pflum
    Participant

    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)"

    Thanks...

  • #15695
    Profile photo of Jeff Pflum
    Jeff Pflum
    Participant

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

  • #15697
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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.