nickwoolley
asked on
Get distinguished name (DN) of public folder in Vb code
Can I get the distinguished name (DN) of a public folder using Vb code? eg for our folder Fred the DN is: ?/o=Timeframe Software Limited/ou=TIMEFRAME/cn=Re cipients/c n=FREDE17F B984E17FB9 84E17FB984 A025001C00 AFD9?) I thought it might be held in the registry but I didn't find it.
I am aware of the Header.exe tool but I can't seem to get any properties
exported usiing this and there is no object called Obj-Dist-Name available.
If I setup a csv file template with just the fields I need then I can do a
manual export from within Exchange Admiinistrator and that will export those
properties for all Mailboxes, but could I tell Exchange to do this from
code?
I've also had a look at CDO but can't find any Folder property which
resembles the Obj-Dist-Name or DN.
I am aware of the Header.exe tool but I can't seem to get any properties
exported usiing this and there is no object called Obj-Dist-Name available.
If I setup a csv file template with just the fields I need then I can do a
manual export from within Exchange Admiinistrator and that will export those
properties for all Mailboxes, but could I tell Exchange to do this from
code?
I've also had a look at CDO but can't find any Folder property which
resembles the Obj-Dist-Name or DN.
Have a look at http://www.cdolive.com/cdo10.htm
ASKER
Hi cquinn, yes cdolive.com has a wealth of knowledge, I was aware of it before Neo_mvps mentioned it but it takes a while to find stuff. I will take a look at the page you mention, thanks
Assuming that you have: /o=Timeframe Software Limited/ou=TIMEFRAME/cn=Re cipients/c n=FREDE17F B984E17FB9 84E17FB984 A025001C00 AFD9
Then I would guess that you have a recipient or address entry object in your hot little hands. The following values will help if you are working with the addressentry.fields collection object.
PR_EMS_AB_HOME_MTA
PR_EMS_AB_FOLDER_PATHNAME
PR_DISPLAY_NAME
Then I would guess that you have a recipient or address entry object in your hot little hands. The following values will help if you are working with the addressentry.fields collection object.
PR_EMS_AB_HOME_MTA
PR_EMS_AB_FOLDER_PATHNAME
PR_DISPLAY_NAME
ASKER
No I have the Display Name 'Fred' and I want to get the DN or Obj-Dist-Name by using the Display Name. I just happen to know that the DN is /o=Timeframe Software Limited/ou=TIMEFRAME/cn=Re cipients/c n=FREDE17F B984E17FB9 84E17FB984 A025001C00 AFD9 from looking it up in Exchange manually.
ASKER
I tried the following:
sAddressEntryID = oFolder.GetAddressEntry.Fi elds(PR_EM S_AB_HOME_ MTA)
having defined PR_EMS_AB_HOME_MTA as:
Const PR_EMS_AB_HOME_MTA = &H8007001E
but no string is returned.
sAddressEntryID = oFolder.GetAddressEntry.Fi
having defined PR_EMS_AB_HOME_MTA as:
Const PR_EMS_AB_HOME_MTA = &H8007001E
but no string is returned.
ASKER
ASKER
Please leave this question open
Hello nickwoolley
this question is open for more then 2 months
time to clean up
if not stated otherwise
my recom will be
-PAQ and refund
-this will be finalized by an EE Moderator
-with no further update (15.09.2002)
PLEASE DO NOT ACCEPT THIS COMMENT AS ANSWER
HAGD:O)Bruintje
posted by ToolzEE v1.0
this question is open for more then 2 months
time to clean up
if not stated otherwise
my recom will be
-PAQ and refund
-this will be finalized by an EE Moderator
-with no further update (15.09.2002)
PLEASE DO NOT ACCEPT THIS COMMENT AS ANSWER
HAGD:O)Bruintje
posted by ToolzEE v1.0
ASKER
It's still a problem I want to solve. I'd like to leave it open, it's on my list to resolve. Or could it be redated so it gets more attention, I'd be happy to double points to 150??
Hello Nick,
you can put a new question on the list with a pointer to this one to attract attention
thanks
JGould-EE Moderator
you can put a new question on the list with a pointer to this one to attract attention
thanks
JGould-EE Moderator
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question,
PAQ/Refund
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Goldwing
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area for this question,
PAQ/Refund
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Goldwing
EE Cleanup Volunteer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.