Active Directory and OU

(imported topic written by jr6591)

The BES Client has the ability to give information about the Active Directory Patch. Is there any way to determine what the OU in Active Directory is only?

(imported comment written by SystemAdmin)

Hey jr,

Try this out and see if it does what you are looking for:

preceding text of first 
",DC" of following text of first 
"OU=" of (

if ( exists setting 
"_BESClient_ActiveDirectoryPathOverride" of client and exists value of setting 
"_BESClient_ActiveDirectoryPathOverride" of client ) then ( value of setting 
"_BESClient_ActiveDirectoryPathOverride" of client ) 

else 

if exists distinguished name of local computer of active directory then distinguished name of local computer of active directory 

else 
"<none>")

(imported comment written by jr6591)

Thanks Tyler. I was hoping on having the last OU it belonged to but this is okay.

(imported comment written by ErnieF91)

Here is one that lists the complete OU path and the number of computer objects in that OU.

Active Directory Path

<?Relevance trs of (td of it & td of (multiplicity of it as string)) of unique values of (following texts of firsts ",OU=" of (values of results of bes property "Active Directory path"))?>
OU Number of computers

(imported comment written by SystemAdmin)

jr

…I was hoping on having the last OU it belonged to…

This should do it:

preceding text of first 
",OU" of following text of first 
",OU=" of distinguished name of local computer of active directory