Scripted Permissions Inheritance

Visual Studio14
Anyone know of a way to script the 'unchecking' of permission inheritance for

a group of subfolders?



I would like to create a script that could be pointed at a directory, and

would go to each sub folder of that directory (one level only) and un-check

the inheritance check box from the Advanced page of the Security tab for each

folder.


-