Solved

Determine status of exchange mailbox vb.net

Posted on 2008-06-09
2
505 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
2 Comments
 
LVL 70

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

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now