'Add New AD Security Group through Powershell where Group equals specific current group on folder and subfolders

Novice when it comes to Powedshell but need to try and get a script for the following. Add New AD Security Group through Powershell, where Group equals specific current group on folder and subfolders.

E.g. In Folder1 (and subfolders) If GroupA is present Add GroupB to Folder1 with same permission.

Any help would be appreciated :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source