If you want to have something show up on the users property pages, then
you need to register a handler to do so, see the MSDN link.


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ad/ad/e
xtending_the_user_interface_for_directory_objects.asp

for another view on this, see this link
http://www.experts-exchange.com/Networking/Microsoft_Network/Q_20814794.
html


If you want to register a script to display a value and allow you to
edit it, that's a LOT easier, i.e. right click on an object (user in
this case) and have extra options on the context menu that execute a
custom script to display and modify ?

You can do this by browsing to the display specifier for your language, 

i.e. in ADSIEDIT browse to CN=Configuration,DC=domain,DC=com
expand DisplaySpecifiers
expand your language; English is 409
show the properties for CN=user-Display
show properties for contextMenu
and add values in the following format:

order, diplay value,path_to_script
E.G. a value I have is:
11, Show &Value,\\server\share\script.vbs

the script doesn't need to be complicated in this case, as all you're
doing is displaying a value with an option to change it; The ADUC gui
passes the object reference as a command line to the script.

in this script example, I'm displaying the users description attribute
with a gui option to change. 

BEGIN SCRIPT
++++++++++++++++++++
set wshArguments =wscript.arguments
set objuser=getobject(wsharguments(0))

sName = inputbox("Enter a new desciption","Description Box",
objuser.description)
if sName = "" then wscript.quit ' user clicked cancel

objuser.description =  sName
objuser.setinfo
++++++++++++++++++++++
END SCRIPT

Note that the attribute showinadvancedviewonly affects the visibility of
this item as well, which means that you may chose to only have this new
menu item pop up when show advanced is chosen.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Devan Pala
Sent: 22 April 2004 10:40 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] Extending ADUC

Hi,

Is it possible to modify the User Property Pages (GUI) to include a
Employee 
ID or Number attribute within a user object.

Thanks,

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/

List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/


List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to