Need help to apply DACL security setting on OU to Trustee Group

10 pts.
Tags:
.CSV files
OU
Somebody help me to write below values from CSV files apply same settings on OU for Group (Trustee)? The CSV file has below filed names -------------------------------------------------------------------------------------------------------------
Trustee_GroupName OUname       AccessMask ACEType ACEFlags Flags ObjectType  InheritedObjectType
deskadm           Desktops 128     5       2       1 {Z7B1B3DD-AB09-4242-9E30-9980E5D322F7}
------------------------------------------------------------------------------------------------------------------- I need to apply delegation on OU for group. example : below code will retrieve fields from OU. But I need a code to add values from file with above field names
$OUName=LDAP://OU=AA,OU=bb,DC=CC,DC=DD,DC=com"
$Sec_DESC = $OUNAME.nTSecurityDescriptor | Foreach {$_.gettype().invokemember("DiscretionaryAcl","GetProperty",$null,$_,$null)}
$Sec_DESC | foreach { New-Object PsObject  @{
"Trustee" = $_.gettype().invokemember("Trustee","GetProperty",$null,$_,$null)
"AceFlags" = $_.gettype().invokemember("AceFlags","GetProperty",$null,$_,$null)
"AceType" = $_.gettype().invokemember("AceType","GetProperty",$null,$_,$null)
"Flags" = $_.gettype().invokemember("Flags","GetProperty",$null,$_,$null)
"ObjectType" = $_.gettype().invokemember("ObjectType","GetProperty",$null,$_,$null)
"InheritedObjectType" = $_.gettype().invokemember("InheritedObjectType","GetProperty",$null,$_,$null)
"AccessMask" = $_.gettype().invokemember("AccessMask","GetProperty",$null,$_,$null)
}


Software/Hardware used:
need help to apply DACL security setting on OU to Trustee Group by reading source file with fields"Trustee_GroupName" "OUname" "AccessMask" "ACEType" "ACEFlags" "Flags" "ObjectType" "InheritedObjectType"

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following