dsccommunity / cNtfsAccessControl

The cNtfsAccessControl DSC resource module.
MIT License
33 stars 10 forks source link

Is it possible to clear other/all permissions? #1

Closed absolutejam closed 8 years ago

absolutejam commented 8 years ago

Hi,

Is it possible to clear other/all permissions instead of choosing to remove individual principals? Is the functionality there to do the equivalent of 'Disable inheritance' -> 'Remove all inherited permissions from this object'?

I have certain folders that I want very specific NTFS permissions and this seems like the best way.

If this isn't something I'm overlooking, I'll try and dig in to the code.

Thanks!

SNikalaichyk commented 8 years ago

Hi, It is not currently possible, but I will look into it. A new resource has to be created.

SNikalaichyk commented 8 years ago

The cNtfsPermissionsInheritance resource has been added. You can get it in the dev branch. Your feedback will be appreciated.

absolutejam commented 8 years ago

Hey, sorry for the delay.

This looks like exactly what I need. I was trying to write it myself, but I hadn't gotten to the grips with writing my own resources yet, but in seeing you create a new one has actually helped me understand a bit better.

Thanks for the help.

SNikalaichyk commented 8 years ago

Glad it helped. I am planning to release version 1.2 to PS Gallery within 2 weeks.