exchangefreaks.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Get Exchange users

 
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange 2000 Applications
Author Message
IMD



Joined: 06 Aug 2007
Posts: 1

PostPosted: Tue Jun 29, 2004 11:39 am    Post subject: Get Exchange users Reply with quote

I'm looking to write a C program (not VB) to get list of
all users/contacts having mailbox on

a windows 2000 and 2003 exchange server. I'm not sure
whether to use ADSI or exchange SDK.

What is the best way to get list of all users
programmatically?

Thanks.

Archived from group: microsoft>public>exchange2000>development
Back to top
View user's profile Send private message
Toby Worth



Joined: 05 Aug 2007
Posts: 1

PostPosted: Tue Jun 29, 2004 4:22 pm    Post subject: RE: Get Exchange users Reply with quote

here is a Microsoft example

http://support.microsoft.com/default.aspx?scid=kb;en-us;223151

then you can place a more robust filter in the
hr = pSearch->ExecuteSearch(
L"(&(objectClass=organizationalPerson)(givenName=F*))",
pszAttr,
dwCount,
&hSearch
);

here is how to get all exchange mailbox users accounts
(&(&(mailnickname=*)(|(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*))))))

Thanks,
Toby


"IMD" wrote:

> I'm looking to write a C program (not VB) to get list of
> all users/contacts having mailbox on
>
> a windows 2000 and 2003 exchange server. I'm not sure
> whether to use ADSI or exchange SDK.
>
> What is the best way to get list of all users
> programmatically?
>
> Thanks.
>
Back to top
View user's profile Send private message
anonymous



Joined: 05 Aug 2007
Posts: 30

PostPosted: Wed Jun 30, 2004 2:32 pm    Post subject: RE: Get Exchange users Reply with quote

Thanks Toby,

Does than mean I have to search all domain whose users
have mailboxes on the exchange server? I was wondering if
there is any way of getting the users list info from the
exchange server. Any MAPI or CDOEXM interface to do that.
Is it OK to use "homeMDBBL" attribute of the exchnage DB
object. If so how to filter real user/contacts/public
folders e-mail list form the values.

IMD
>-----Original Message-----
>here is a Microsoft example
>
>http://support.microsoft.com/default.aspx?scid=kb;en-
us;223151
>
>then you can place a more robust filter in the
> hr = pSearch->ExecuteSearch(
> L"(&(objectClass=organizationalPerson)
(givenName=F*))",
> pszAttr,
> dwCount,
> &hSearch
> );
>
>here is how to get all exchange mailbox users accounts
>(&(&(mailnickname=*)(|(&(objectCategory=person)
(objectClass=user)(|(homeMDB=*)
(msExchHomeServerName=*))))))
>
>Thanks,
>Toby
>
>
>"IMD" wrote:
>
>> I'm looking to write a C program (not VB) to get list
of
>> all users/contacts having mailbox on
>>
>> a windows 2000 and 2003 exchange server. I'm not sure
>> whether to use ADSI or exchange SDK.
>>
>> What is the best way to get list of all users
>> programmatically?
>>
>> Thanks.
>>
>.
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Exchange I'm currently unable to create a user account from active directory users and computers. I'm using Windows 2000 SP4. After the account is created from the domain controller, it's not showing up in the mailbox store of the exchange server. The account has

Exchange Messenger Log? Is there a way to log all of the MSN Messenger chats happening on my Exchange 2000 server?

Exchange Autoreplying ? We have an Exchange 2003 server and an internal NAT We would like those emailing the helpdesk email account from outside the company to receive an auto-reply message ("we received your but we would not want the au

Exchange and GroupShield Hey, I currently have 2 Exchange 2000 running with GroupShield 5.2 SP1. I now want to bring up an extra Exchange 2003 server in the organisation. Can i install GroupShield 6.0.2 on the Exchange 2003 or do i have to run the same GroupShield version on all

Exchange SDK Problem I am trying to set up the SDK Sample Events using the and get the following error Error opening connection: -2146105340 Method '~' of object '~' failed. This program must be run on an Exchange Server. I created the COM+ component as dir
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange 2000 Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group