For Modify rights, you should be able to simply specify Modify where you have FullControl.
For inheritance, see the section “Disable/enable permissions inheritance” here: How to Use PowerShell to Manage Folder Permissions - Petri IT Knowledgebase
--
John Wright
IT Support Specialist
1800 Old Bluegrass Avenue, Louisville, KY 40215
Please submit IT requests to Hazelwoo...@bluegrass.org
24 Hour Helpline 1.800.928.8000
CONFIDENTIALITY NOTICE: This message contains confidential information and is intended only for the individual(s) addressed in the message. If you are not the named addressee, you should not disseminate, distribute, or copy this e-mail. If you are not the intended recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited.
From: ntpowe...@googlegroups.com <ntpowe...@googlegroups.com>
On Behalf Of Mike Leone
Sent: Tuesday, May 7, 2024 9:22 AM
To: NTPowershell Mailing List <ntpowe...@googlegroups.com>
Subject: [ntpowershell] Setting ACLs
This message is from an external sender. |
--
You received this message because you are subscribed to the Google Groups "ntpowershell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntpowershell...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ntpowershell/CAHBr%2B%2Bij3_8OMvyF_FJQFCdxCPWzFHKXnwiVfFOmVY_r_HoyRA%40mail.gmail.com.
[CAUTION] Do not click on links or open attachments unless you recognize the sender and know the content is safe. |
Honestly, I still (most often, not always) use icacls.exe. It’s much easier to use.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/DM6PR12MB4372B0D80269B2C1163F55BC91E42%40DM6PR12MB4372.namprd12.prod.outlook.com.
For Modify rights, you should be able to simply specify Modify where you have FullControl.
For inheritance, see the section “Disable/enable permissions inheritance” here: How to Use PowerShell to Manage Folder Permissions - Petri IT Knowledgebase
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/DM6PR12MB4372B0D80269B2C1163F55BC91E42%40DM6PR12MB4372.namprd12.prod.outlook.com.
--
You received this message because you are subscribed to the Google Groups "ntpowershell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntpowershell...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/AS8P195MB243966C56AD4E42604CC0B40C4E42%40AS8P195MB2439.EURP195.PROD.OUTLOOK.COM.
--
I need something similar to your request. At the end did you use icacls within a PowerShell script? If so, can you share that?
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/c5fe7181-5d01-47ef-babf-cfb7d738650bn%40googlegroups.com.
The inheritance flag can help with this. Here is one way to approach this to apply Modify permissions to this folder, subfolders and files. Playing with the InheritanceFlag and PropagationFlag lets you do most of the custom ACL stuff you can do through the GUI:
$FolderPath = 'C:\Temp\FolderPermsTest'
$ACE = @{
GroupName = 'NT AUTHORITY\INTERACTIVE'
Rights = 'Modify'
InheritanceFlag = 'ContainerInherit, ObjectInherit'
PropagationFlag = 'None'
AllowOrDeny = 'Allow'
}
$AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule `
($ACE.GroupName, $ACE.Rights, $ACE.InheritanceFlag, $ACE.PropagationFlag, $ACE.AllowOrDeny)
$FolderAcl = Get-Acl $FolderPath -Audit
Write-Verbose 'Add the new ACL to the list (it is NOT committed yet though)'
$FolderAcl.AddAccessRule($AccessRule)
Write-Verbose 'Commit the ACL change'
Set-ACL $FolderPath -AclObject $FolderAcl
-Aakash Shah
From: ntpowe...@googlegroups.com <ntpowe...@googlegroups.com>
On Behalf Of Mike Leone
Sent: Tuesday, May 7, 2024 6:22 AM
To: NTPowershell Mailing List <ntpowe...@googlegroups.com>
Subject: [ntpowershell] Setting ACLs
So I need to create a bunch of directories, one for each member of an AD group. I need these users to have FULL CONTROL of the directory, and any sub-folders. I have my script creating the folder, and setting the ACLs, but when I examine the security, it shows as "Special Permission". If I look at it in Advanced view, I see it has FULL CONTROL, but not for any sub-folders.
--
You received this message because you are subscribed to the Google Groups "ntpowershell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntpowershell...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/CAHBr%2B%2Bij3_8OMvyF_FJQFCdxCPWzFHKXnwiVfFOmVY_r_HoyRA%40mail.gmail.com.
I need something similar to your request. At the end did you use icacls within a PowerShell script? If so, can you share that?
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/c5fe7181-5d01-47ef-babf-cfb7d738650bn%40googlegroups.com.