Solved

Determine status of exchange mailbox vb.net

Posted on 2008-06-09
2
513 Views
Last Modified: 2008-06-10
Hello fellow experts,

I'm currently writing a vb.net 2.0 consoleapp that will cycle through active directory user accounts and add/remove them to/from some distrobution lists. No problems doing that.
Now for the question. in the exchange management snap-in there is a column "StorageLimits" that says whether the mailbox is below limit, disabled ect.
Can i access that info using the directoryentry object?
What AD property is that information stored in?

PS: I want to add the users to the Distro if their mailbox is below limit,
and I want to  remove them from the distro if their mailbox is disabled.
0
Comment
Question by:Dustin Hopkins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 71

Accepted Solution

by:
Chris Dent earned 500 total points
ID: 21749483

Hey,

It's not stored in AD at all, but you can get it all using WMI from Exchange (2003).

To be slightly annoying anything you write in that respect is only good for 2003, it won't work with 2000 or 2007.

Perhaps the best way to see what's available there is to use Scriptomatic:

http://www.microsoft.com/downloads/details.aspx?familyid=09dfc342-648b-4119-b7eb-783b0f7d1178&displaylang=en

Then take a look at:

root\MicrosoftExchangeV2
Exchange_Mailbox

There are a number of fields available there you can use to match to user accounts in AD.

Chris
0
 
LVL 14

Author Comment

by:Dustin Hopkins
ID: 21755842
Thanks for the response. I ended up using my vb.net app to interface with wmi and get the proper info. Thanks for the link too, I found the software very helpful.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This video discusses moving either the default database or any database to a new volume.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question