0 votes

How can I get the Display Name of a Target Object's Manager?

I am able to get the Full Name but the Display Name throws an exception.

This is what I'm trying to do,

$Manager = $Context.BindToObject("Adaxes://%manager%");
$mgr = $Manager.FullName; # works
but,
$mgr = $Manager.DisplayName; # throws exception, returns null or blank

by (730 points)

1 Answer

0 votes
by (730 points)

Never mind, I figured it out.

I realized that $Manager is a IADs object, so I had to use $Manager.Get("displayName") to get the Display Name.

Thank you

Related questions

0 votes
1 answer

need help on changing display name of a customattribute (customattributedate1)

asked Jan 4, 2021 by snawaz (20 points)
0 votes
1 answer

In the web interface, I would like to display the "Distinguished Name" property but it is not showing it as it would when using ADUC or even in the Adaxes Admin Console. Is ... I would like it to display like this: CN=Mark Smith,OU=Sales,DC=Fabrikam,DC=COM

asked Jan 15, 2020 by mark.it.admin (2.3k points)
0 votes
1 answer

Is it possible for the email notification action to display a friendly name instead of email address from Softerra Adaxes Service? I'm using the built-in send email action. Would using a powershell method change this behavior?

asked Aug 15, 2019 by polley (1.2k points)
0 votes
1 answer

How do change the display name of a custom attribute in version 2017.2? All the information I am finding contains links that bring me to 2018 version

asked Nov 1, 2018 by hgletifer (1.3k points)
0 votes
1 answer

I have an issue where the display name attribute is populated in AD, but is not showing in the Web UI under the exchange properties. Is this something I am doing wrong?

asked May 6, 2015 by lasership (370 points)
3,351 questions
3,052 answers
7,791 comments
545,103 users