Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Setting "Advanced security settings" on an OU using Powershell

$
0
0

Hello,

I have been tasked to create an OU with the simular permissions as another. On the current OU, the admin1 acount has special permissions (set within the Advanced Security Settings). For the new OU, they want a new admin2 account to have the same permissions on the OU as admin1 has on the current OU.

I was able to extract the OU permissions using the following Powershell script:

Get-QADObject 'OU=Temp,OU=,OU=Group,DC=Department,DC=Company,DC=com' -SecurityMask Dacl -sizelimit 0 |
Get-QADPermission -Inherited -SchemaDefault |
Select-Object account, rights, source, appliesto |
Sort-Object account |
Export-Csv c:\temp\report.csv -NoTypeInformation

However, Powershell script did not provide the "Advanced Security Settings". Therefore, I am looking for a couple Powershell commands that:

1. Copies the permission entries of the Advanced Security Settings Properties on an OU

or

2. Sets the permission entries of the Advanced Security Settings Properties on an OU

Any help would be greatly appreciated.

Mxer4life



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>