0 votes

Hello,

It is possible to read values in specuial conatianers like OU=Policies,OU=System,dc=domain? The cmdlet get-ADOrganizationlUnit is not working for this type of object.

Thanks!

by (5.2k points)

1 Answer

0 votes
by (162k points)

Hello,

The thing is that System and Policies are containers, not Organizational Units. As a result, the container distinguished name is CN=Policies,CN=System,DC=domain,DC=com. In PowerShell scripts executed in Adaxes Business Rules, Custom Commands, etc. you can use the $Context.BindToObjectByDN method to bind to the container.

Related questions

0 votes
1 answer

Hi, I have a Business Unit defined based on an LDAP Query which I use to limit the accounts in AD an admin can control. I would also like to limit the scope of the search ... to for the LDAP filter to work on the BU, but having trouble working it out? Thanks,

asked Aug 5, 2014 by dazbo (2.6k points)
0 votes
1 answer

The built in functionality to convert exchange online mailboxes to shared does not work for users that are synced from our local AD via Azure AD connect. How can we over ... account to in cloud from synced with AD all our issues with this would be resolved.

asked Jul 31 by john.morrow (1.2k points)
0 votes
1 answer

Not sure if this is possible but is there a mechanism to query AD to get the latest "serialised" username. We don't use proper names for usernames we use a logon ... existing contractor logon name and create the next one in sequence. A bridge too far maybe?

asked Mar 4, 2015 by bistromath (4.3k points)
0 votes
1 answer

Is it possible to script having users added (or removed) from a Security Group based on another AD Attribute? I have found ways to do this in Powershell (something like): ... just utilize the PS script and just run it through Adaxes on a timed fashion? Thanks!

asked Oct 7, 2014 by PunkinDonuts (2k points)
0 votes
1 answer

I'm unable to Browse the AD OUs my Security Role Trustee is Assigned Over in my Custom Web Portal. When clicking Browse it states "No objects to display". How can I rectify this issue?

asked Feb 1, 2013 by mdeflice (2.7k points)
2,031 questions
1,806 answers
5,156 comments
1,018 users