I am trying to write a script which links a folder's security permissions to an existing AD group. I've yet to find any script or cmdlet (Set-Acl can't link to groups, only explicit permissions) which allows me to script this.
As an example, I have a folder called "FOLDER A" and an AD security group called "FOLDER A". Is there any way for add the AD group to the folder's security?
AD group within folder permissions example:
EDIT: I may have found a solution on serverfault. I can use the Get-ADGroup cmdlet to find the SID of each group and then pass the IdentityReference for the Set-Acl. Will test this out and see if I can get it to work