Custom icons in ADUC

  • Thread starter Thread starter Wesoft
  • Start date Start date
W

Wesoft

Hi Experts,

Is it possible to change the icons shown in ADUC according to different
attribute value of the AD object?
eg. Male users show a Male icon, while female users show a female icon.

I have tried the iconPath in the DisplaySpecifier, it can change the icon
easily, however, it doesn't depend on the gender attribute.
For short, what I want to do is to laod the icon dynamically according to
various attributes set on the AD objects. Is it possible?

Thanks in advance.

Best Regards,
Tony Cheung
 
If I'm not mistaken this won;t be possible since ADUC is going to set this
per object it isn't configurable per attribute with in the object.

I also noticed you double posted this. You should include both newsgroups
at once then any repsonse will show up in both locations, otherwise others
don;t know there have been responses.

--
Paul Bergson MCT, MCSE, MCSA, Security+, CNE, CNA, CCA
http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi,

Thanks for your response!
If I'm not mistaken this won;t be possible since ADUC is going to set this
per object it isn't configurable per attribute with in the object.

Yes! What I want to do is to show different icon depending on the object's
attribute.

Is this possible by coding an ADUC extension to extend the ADUC snapin, so
that everytime the users select a node on the Scope Pane, I can replace the
icons on the Result Pane?
Or is there any un-documented way to do this?
Can someone from Microsoft stand out and tell us "by design, it is currently
impossible to customize icons in this way"? =)

Thanks for your help!

Best Regards,
Tony Cheung
 
Unless I'm missing something this still won't allow different icons since
the subtle difference is a attribute value.

--
Paul Bergson MCT, MCSE, MCSA, Security+, CNE, CNA, CCA
http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup

This posting is provided "AS IS" with no warranties, and confers no rights.
 
I have looked at the ADUC source code, I see no way, documented or
undocumented to pull this off.

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm
 
Dear Christoffer,

Thanks for your information! I truly appreciate your help. =)
You have to modify the displaySpecifies for a particular class that you want
to change the icon for.

Have a look at the follow article.
http://msdn.microsoft.com/library/d...y/en-us/ad/ad/idsdisplayspecifier_geticon.asp

The IDsDisplaySpecifier interface looks like an interface to access the
DisplaySpecifier data on the AD. It can help to load the icon information in
the iconPath attribute, however, it doens't allow writing extension module
to work with the iconPath. If I am not mis-understanding the documentation,
the current iconPath implementation allow the icons to be loaded from a (dll
+ index), depending on the object class. Correct me if I am wrong. For you
information, please read
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ad/ad/class_icons.asp

However, what I am going to do is to extend the ADUC snapin to show differnt
icons depends on the object attribute, let take the example I mentioned in
previous post.
eg. Male user showing a male icon while female user showing a female icon.
Both male and female belong to the same user class. Is this possible?

Take a look at the context menu extension,
http://msdn.microsoft.com/library/d...ext_menus_for_use_with_display_specifiers.asp

This approach would fit my needs. It would be grateful if we can run an
extension module when loading an icon, in which we can customize whatever
icons we want to show.

Thanks for your help!
 
Joe you are TechEd next week?

--
Paul Bergson MCT, MCSE, MCSA, Security+, CNE, CNA, CCA
http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Bummer, hoping to meet you.

--
Paul Bergson MCT, MCSE, MCSA, Security+, CNE, CNA, CCA
http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup

This posting is provided "AS IS" with no warranties, and confers no rights.
 
I will have lots of folks who know me there, you can talk to them and
they can tell you how evil I am and how no one really should want to
meet me... ;) They are usually working the cabanas, just look for the
Server MVPs. Especially the DS MVPS.



--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm
 
Yeah I usually stop by and put faces to names. I hit a few last year. I
hope some day I may have the MVP status but having to compare myself to
people like you it looks bleak.

--
Paul Bergson MCT, MCSE, MCSA, Security+, CNE, CNA, CCA
http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup

This posting is provided "AS IS" with no warranties, and confers no rights.
 
I would say you are well on your way. Don't compare to me, I am often
called an oddball in the group. :)

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm
 
Back
Top